157 lines
5.2 KiB
Smali
157 lines
5.2 KiB
Smali
|
.class public final Lcom/discord/widgets/friends/FriendsListViewModel$Factory;
|
||
|
.super Ljava/lang/Object;
|
||
|
.source "FriendsListViewModel.kt"
|
||
|
|
||
|
# interfaces
|
||
|
.implements Landroidx/lifecycle/ViewModelProvider$Factory;
|
||
|
|
||
|
|
||
|
# annotations
|
||
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
||
|
value = Lcom/discord/widgets/friends/FriendsListViewModel;
|
||
|
.end annotation
|
||
|
|
||
|
.annotation system Ldalvik/annotation/InnerClass;
|
||
|
accessFlags = 0x19
|
||
|
name = "Factory"
|
||
|
.end annotation
|
||
|
|
||
|
|
||
|
# direct methods
|
||
|
.method public constructor <init>()V
|
||
|
.locals 0
|
||
|
|
||
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
|
||
|
# virtual methods
|
||
|
.method public create(Ljava/lang/Class;)Landroidx/lifecycle/ViewModel;
|
||
|
.locals 9
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"<T:",
|
||
|
"Landroidx/lifecycle/ViewModel;",
|
||
|
">(",
|
||
|
"Ljava/lang/Class<",
|
||
|
"TT;>;)TT;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
const-string v0, "modelClass"
|
||
|
|
||
|
invoke-static {p1, v0}, Lz/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
||
|
|
||
|
new-instance p1, Lcom/discord/widgets/friends/FriendsListViewModel;
|
||
|
|
||
|
invoke-virtual {p0}, Lcom/discord/widgets/friends/FriendsListViewModel$Factory;->observeStores()Lrx/Observable;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
sget-object v0, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion;
|
||
|
|
||
|
invoke-virtual {v0}, Lcom/discord/stores/StoreStream$Companion;->getChannels()Lcom/discord/stores/StoreChannels;
|
||
|
|
||
|
move-result-object v3
|
||
|
|
||
|
sget-object v0, Lcom/discord/utilities/rest/RestAPI;->Companion:Lcom/discord/utilities/rest/RestAPI$Companion;
|
||
|
|
||
|
invoke-virtual {v0}, Lcom/discord/utilities/rest/RestAPI$Companion;->getApi()Lcom/discord/utilities/rest/RestAPI;
|
||
|
|
||
|
move-result-object v4
|
||
|
|
||
|
const/4 v5, 0x0
|
||
|
|
||
|
const/4 v6, 0x0
|
||
|
|
||
|
const/16 v7, 0x10
|
||
|
|
||
|
const/4 v8, 0x0
|
||
|
|
||
|
move-object v1, p1
|
||
|
|
||
|
invoke-direct/range {v1 .. v8}, Lcom/discord/widgets/friends/FriendsListViewModel;-><init>(Lrx/Observable;Lcom/discord/stores/StoreChannels;Lcom/discord/utilities/rest/RestAPI;ZLcom/discord/utilities/channel/ChannelUtils;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
|
||
|
|
||
|
return-object p1
|
||
|
.end method
|
||
|
|
||
|
.method public final observeStores()Lrx/Observable;
|
||
|
.locals 10
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"()",
|
||
|
"Lrx/Observable<",
|
||
|
"Lcom/discord/widgets/friends/FriendsListViewModel$StoreState;",
|
||
|
">;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
sget-object v0, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion;
|
||
|
|
||
|
invoke-virtual {v0}, Lcom/discord/stores/StoreStream$Companion;->getChannelsSelected()Lcom/discord/stores/StoreChannelsSelected;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-virtual {v0}, Lcom/discord/stores/StoreChannelsSelected;->observeId()Lrx/Observable;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
sget-object v0, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion;
|
||
|
|
||
|
invoke-virtual {v0}, Lcom/discord/stores/StoreStream$Companion;->getPresences()Lcom/discord/stores/StoreUserPresence;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-virtual {v0}, Lcom/discord/stores/StoreUserPresence;->observeAllPresences()Lrx/Observable;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
sget-object v0, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion;
|
||
|
|
||
|
invoke-virtual {v0}, Lcom/discord/stores/StoreStream$Companion;->getUsers()Lcom/discord/stores/StoreUser;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-virtual {v0}, Lcom/discord/stores/StoreUser;->observeAllUsers()Lrx/Observable;
|
||
|
|
||
|
move-result-object v3
|
||
|
|
||
|
sget-object v0, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion;
|
||
|
|
||
|
invoke-virtual {v0}, Lcom/discord/stores/StoreStream$Companion;->getUserRelationships()Lcom/discord/stores/StoreUserRelationships;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-virtual {v0}, Lcom/discord/stores/StoreUserRelationships;->observeUserRelationshipsState()Lrx/Observable;
|
||
|
|
||
|
move-result-object v4
|
||
|
|
||
|
sget-object v0, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion;
|
||
|
|
||
|
invoke-virtual {v0}, Lcom/discord/stores/StoreStream$Companion;->getApplicationStreaming()Lcom/discord/stores/StoreApplicationStreaming;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-virtual {v0}, Lcom/discord/stores/StoreApplicationStreaming;->getStreamsByUser()Lrx/Observable;
|
||
|
|
||
|
move-result-object v5
|
||
|
|
||
|
sget-object v6, Lcom/discord/widgets/friends/FriendsListViewModel$Factory$observeStores$1;->INSTANCE:Lcom/discord/widgets/friends/FriendsListViewModel$Factory$observeStores$1;
|
||
|
|
||
|
sget-object v9, Ljava/util/concurrent/TimeUnit;->MILLISECONDS:Ljava/util/concurrent/TimeUnit;
|
||
|
|
||
|
const-wide/16 v7, 0x3e8
|
||
|
|
||
|
invoke-static/range {v1 .. v9}, Lcom/discord/utilities/rx/ObservableWithLeadingEdgeThrottle;->combineLatest(Lrx/Observable;Lrx/Observable;Lrx/Observable;Lrx/Observable;Lrx/Observable;Lrx/functions/Func5;JLjava/util/concurrent/TimeUnit;)Lrx/Observable;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
const-string v1, "ObservableWithLeadingEdg\u2026ILLISECONDS\n )"
|
||
|
|
||
|
invoke-static {v0, v1}, Lz/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|