221 lines
9.6 KiB
Smali
221 lines
9.6 KiB
Smali
.class public final Lcom/discord/widgets/user/usersheet/WidgetUserSheetViewModelFactory$observeStoreState$2;
|
|
.super Ljava/lang/Object;
|
|
.source "WidgetUserSheetViewModelFactory.kt"
|
|
|
|
# interfaces
|
|
.implements Lb0/l/i;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
value = Lcom/discord/widgets/user/usersheet/WidgetUserSheetViewModelFactory;->observeStoreState(Lcom/discord/stores/StoreUser;Lcom/discord/stores/StoreChannels;Lcom/discord/stores/StoreVoiceChannelSelected;Lcom/discord/stores/StoreUserProfile;Lcom/discord/stores/StoreUserRelationships;Lcom/discord/stores/StoreVoiceStates;Lcom/discord/stores/StoreGuilds;Lcom/discord/stores/StoreMediaSettings;Lcom/discord/stores/StoreUserPresence;Lcom/discord/stores/StorePermissions;Lcom/discord/stores/StoreUserNotes;Lcom/discord/utilities/streams/StreamContextService;Lrx/Scheduler;)Lrx/Observable;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x19
|
|
name = null
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
"R:",
|
|
"Ljava/lang/Object;",
|
|
">",
|
|
"Ljava/lang/Object;",
|
|
"Lb0/l/i<",
|
|
"TT;",
|
|
"Lrx/Observable<",
|
|
"+TR;>;>;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public final synthetic $storeChannels:Lcom/discord/stores/StoreChannels;
|
|
|
|
.field public final synthetic $storeGuilds:Lcom/discord/stores/StoreGuilds;
|
|
|
|
.field public final synthetic $storeMediaSettings:Lcom/discord/stores/StoreMediaSettings;
|
|
|
|
.field public final synthetic $storePermissions:Lcom/discord/stores/StorePermissions;
|
|
|
|
.field public final synthetic $storeStateRxScheduler:Lrx/Scheduler;
|
|
|
|
.field public final synthetic $storeUserNotes:Lcom/discord/stores/StoreUserNotes;
|
|
|
|
.field public final synthetic $storeUserPresence:Lcom/discord/stores/StoreUserPresence;
|
|
|
|
.field public final synthetic $storeUserProfile:Lcom/discord/stores/StoreUserProfile;
|
|
|
|
.field public final synthetic $storeUserRelationships:Lcom/discord/stores/StoreUserRelationships;
|
|
|
|
.field public final synthetic $storeVoiceChannelSelected:Lcom/discord/stores/StoreVoiceChannelSelected;
|
|
|
|
.field public final synthetic $storeVoiceStates:Lcom/discord/stores/StoreVoiceStates;
|
|
|
|
.field public final synthetic $streamContextService:Lcom/discord/utilities/streams/StreamContextService;
|
|
|
|
.field public final synthetic this$0:Lcom/discord/widgets/user/usersheet/WidgetUserSheetViewModelFactory;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lcom/discord/widgets/user/usersheet/WidgetUserSheetViewModelFactory;Lcom/discord/stores/StoreChannels;Lcom/discord/stores/StoreVoiceChannelSelected;Lcom/discord/stores/StoreUserProfile;Lcom/discord/stores/StoreUserRelationships;Lcom/discord/stores/StoreVoiceStates;Lcom/discord/stores/StoreGuilds;Lcom/discord/stores/StoreMediaSettings;Lcom/discord/stores/StoreUserPresence;Lcom/discord/stores/StorePermissions;Lcom/discord/stores/StoreUserNotes;Lcom/discord/utilities/streams/StreamContextService;Lrx/Scheduler;)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Lcom/discord/widgets/user/usersheet/WidgetUserSheetViewModelFactory$observeStoreState$2;->this$0:Lcom/discord/widgets/user/usersheet/WidgetUserSheetViewModelFactory;
|
|
|
|
iput-object p2, p0, Lcom/discord/widgets/user/usersheet/WidgetUserSheetViewModelFactory$observeStoreState$2;->$storeChannels:Lcom/discord/stores/StoreChannels;
|
|
|
|
iput-object p3, p0, Lcom/discord/widgets/user/usersheet/WidgetUserSheetViewModelFactory$observeStoreState$2;->$storeVoiceChannelSelected:Lcom/discord/stores/StoreVoiceChannelSelected;
|
|
|
|
iput-object p4, p0, Lcom/discord/widgets/user/usersheet/WidgetUserSheetViewModelFactory$observeStoreState$2;->$storeUserProfile:Lcom/discord/stores/StoreUserProfile;
|
|
|
|
iput-object p5, p0, Lcom/discord/widgets/user/usersheet/WidgetUserSheetViewModelFactory$observeStoreState$2;->$storeUserRelationships:Lcom/discord/stores/StoreUserRelationships;
|
|
|
|
iput-object p6, p0, Lcom/discord/widgets/user/usersheet/WidgetUserSheetViewModelFactory$observeStoreState$2;->$storeVoiceStates:Lcom/discord/stores/StoreVoiceStates;
|
|
|
|
iput-object p7, p0, Lcom/discord/widgets/user/usersheet/WidgetUserSheetViewModelFactory$observeStoreState$2;->$storeGuilds:Lcom/discord/stores/StoreGuilds;
|
|
|
|
iput-object p8, p0, Lcom/discord/widgets/user/usersheet/WidgetUserSheetViewModelFactory$observeStoreState$2;->$storeMediaSettings:Lcom/discord/stores/StoreMediaSettings;
|
|
|
|
iput-object p9, p0, Lcom/discord/widgets/user/usersheet/WidgetUserSheetViewModelFactory$observeStoreState$2;->$storeUserPresence:Lcom/discord/stores/StoreUserPresence;
|
|
|
|
iput-object p10, p0, Lcom/discord/widgets/user/usersheet/WidgetUserSheetViewModelFactory$observeStoreState$2;->$storePermissions:Lcom/discord/stores/StorePermissions;
|
|
|
|
iput-object p11, p0, Lcom/discord/widgets/user/usersheet/WidgetUserSheetViewModelFactory$observeStoreState$2;->$storeUserNotes:Lcom/discord/stores/StoreUserNotes;
|
|
|
|
iput-object p12, p0, Lcom/discord/widgets/user/usersheet/WidgetUserSheetViewModelFactory$observeStoreState$2;->$streamContextService:Lcom/discord/utilities/streams/StreamContextService;
|
|
|
|
iput-object p13, p0, Lcom/discord/widgets/user/usersheet/WidgetUserSheetViewModelFactory$observeStoreState$2;->$storeStateRxScheduler:Lrx/Scheduler;
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public bridge synthetic call(Ljava/lang/Object;)Ljava/lang/Object;
|
|
.locals 0
|
|
|
|
check-cast p1, Lkotlin/Pair;
|
|
|
|
invoke-virtual {p0, p1}, Lcom/discord/widgets/user/usersheet/WidgetUserSheetViewModelFactory$observeStoreState$2;->call(Lkotlin/Pair;)Lrx/Observable;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public final call(Lkotlin/Pair;)Lrx/Observable;
|
|
.locals 4
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lkotlin/Pair<",
|
|
"+",
|
|
"Lcom/discord/models/domain/ModelUser;",
|
|
"+",
|
|
"Lcom/discord/models/domain/ModelUser;",
|
|
">;)",
|
|
"Lrx/Observable<",
|
|
"+",
|
|
"Lcom/discord/widgets/user/usersheet/WidgetUserSheetViewModel$StoreState;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
invoke-virtual {p1}, Lkotlin/Pair;->component1()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lcom/discord/models/domain/ModelUser;
|
|
|
|
invoke-virtual {p1}, Lkotlin/Pair;->component2()Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Lcom/discord/models/domain/ModelUser;
|
|
|
|
iget-object v1, p0, Lcom/discord/widgets/user/usersheet/WidgetUserSheetViewModelFactory$observeStoreState$2;->this$0:Lcom/discord/widgets/user/usersheet/WidgetUserSheetViewModelFactory;
|
|
|
|
invoke-virtual {v1}, Lcom/discord/widgets/user/usersheet/WidgetUserSheetViewModelFactory;->getChannelId()Ljava/lang/Long;
|
|
|
|
move-result-object v1
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
iget-object v1, p0, Lcom/discord/widgets/user/usersheet/WidgetUserSheetViewModelFactory$observeStoreState$2;->$storeChannels:Lcom/discord/stores/StoreChannels;
|
|
|
|
iget-object v2, p0, Lcom/discord/widgets/user/usersheet/WidgetUserSheetViewModelFactory$observeStoreState$2;->this$0:Lcom/discord/widgets/user/usersheet/WidgetUserSheetViewModelFactory;
|
|
|
|
invoke-virtual {v2}, Lcom/discord/widgets/user/usersheet/WidgetUserSheetViewModelFactory;->getChannelId()Ljava/lang/Long;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v2}, Ljava/lang/Long;->longValue()J
|
|
|
|
move-result-wide v2
|
|
|
|
invoke-virtual {v1, v2, v3}, Lcom/discord/stores/StoreChannels;->get(J)Lrx/Observable;
|
|
|
|
move-result-object v1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v1, 0x0
|
|
|
|
new-instance v2, Lb0/m/e/j;
|
|
|
|
invoke-direct {v2, v1}, Lb0/m/e/j;-><init>(Ljava/lang/Object;)V
|
|
|
|
move-object v1, v2
|
|
|
|
:goto_0
|
|
if-eqz v0, :cond_1
|
|
|
|
iget-object v2, p0, Lcom/discord/widgets/user/usersheet/WidgetUserSheetViewModelFactory$observeStoreState$2;->$storeVoiceChannelSelected:Lcom/discord/stores/StoreVoiceChannelSelected;
|
|
|
|
invoke-virtual {v2}, Lcom/discord/stores/StoreVoiceChannelSelected;->get()Lrx/Observable;
|
|
|
|
move-result-object v2
|
|
|
|
sget-object v3, Lcom/discord/widgets/user/usersheet/WidgetUserSheetViewModelFactory$observeStoreState$2$1$1;->INSTANCE:Lcom/discord/widgets/user/usersheet/WidgetUserSheetViewModelFactory$observeStoreState$2$1$1;
|
|
|
|
invoke-static {v1, v2, v3}, Lrx/Observable;->a(Lrx/Observable;Lrx/Observable;Lrx/functions/Func2;)Lrx/Observable;
|
|
|
|
move-result-object v2
|
|
|
|
new-instance v3, Lcom/discord/widgets/user/usersheet/WidgetUserSheetViewModelFactory$observeStoreState$2$$special$$inlined$let$lambda$1;
|
|
|
|
invoke-direct {v3, p0, v1, v0, p1}, Lcom/discord/widgets/user/usersheet/WidgetUserSheetViewModelFactory$observeStoreState$2$$special$$inlined$let$lambda$1;-><init>(Lcom/discord/widgets/user/usersheet/WidgetUserSheetViewModelFactory$observeStoreState$2;Lrx/Observable;Lcom/discord/models/domain/ModelUser;Lcom/discord/models/domain/ModelUser;)V
|
|
|
|
invoke-virtual {v2, v3}, Lrx/Observable;->k(Lb0/l/i;)Lrx/Observable;
|
|
|
|
move-result-object p1
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
const-wide/16 v0, 0x5
|
|
|
|
sget-object p1, Ljava/util/concurrent/TimeUnit;->SECONDS:Ljava/util/concurrent/TimeUnit;
|
|
|
|
invoke-static {v0, v1, p1}, Lrx/Observable;->i(JLjava/util/concurrent/TimeUnit;)Lrx/Observable;
|
|
|
|
move-result-object p1
|
|
|
|
sget-object v0, Lcom/discord/widgets/user/usersheet/WidgetUserSheetViewModelFactory$observeStoreState$2$2;->INSTANCE:Lcom/discord/widgets/user/usersheet/WidgetUserSheetViewModelFactory$observeStoreState$2$2;
|
|
|
|
invoke-virtual {p1, v0}, Lrx/Observable;->f(Lb0/l/i;)Lrx/Observable;
|
|
|
|
move-result-object p1
|
|
|
|
:goto_1
|
|
return-object p1
|
|
.end method
|