apkfuckery/com.discord/smali/com/discord/widgets/servers/WidgetServerSettingsOverview$Model$Companion$get$1.smali

158 lines
4.5 KiB
Smali
Raw Normal View History

2019-02-04 20:08:30 +00:00
.class final Lcom/discord/widgets/servers/WidgetServerSettingsOverview$Model$Companion$get$1;
.super Ljava/lang/Object;
# interfaces
.implements Lrx/functions/b;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/discord/widgets/servers/WidgetServerSettingsOverview$Model$Companion;->get(J)Lrx/Observable;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x18
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
"R:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;",
"Lrx/functions/b<",
"TT;",
"Lrx/Observable<",
"+TR;>;>;"
}
.end annotation
# instance fields
.field final synthetic $guildId:J
# direct methods
.method constructor <init>(J)V
.locals 0
iput-wide p1, p0, Lcom/discord/widgets/servers/WidgetServerSettingsOverview$Model$Companion$get$1;->$guildId:J
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public final bridge synthetic call(Ljava/lang/Object;)Ljava/lang/Object;
.locals 0
check-cast p1, Lcom/discord/models/domain/ModelGuild;
invoke-virtual {p0, p1}, Lcom/discord/widgets/servers/WidgetServerSettingsOverview$Model$Companion$get$1;->call(Lcom/discord/models/domain/ModelGuild;)Lrx/Observable;
move-result-object p1
return-object p1
.end method
.method public final call(Lcom/discord/models/domain/ModelGuild;)Lrx/Observable;
.locals 8
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/discord/models/domain/ModelGuild;",
")",
"Lrx/Observable<",
"+",
"Lcom/discord/widgets/servers/WidgetServerSettingsOverview$Model;",
">;"
}
.end annotation
if-nez p1, :cond_0
const/4 p1, 0x0
invoke-static {p1}, Lrx/Observable;->ca(Ljava/lang/Object;)Lrx/Observable;
move-result-object p1
return-object p1
:cond_0
invoke-static {}, Lcom/discord/stores/StoreStream;->getUsers()Lcom/discord/stores/StoreUser;
move-result-object v0
const-string v1, "StoreStream\n \u2026 .getUsers()"
invoke-static {v0, v1}, Lkotlin/jvm/internal/j;->g(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {v0}, Lcom/discord/stores/StoreUser;->getMe()Lrx/Observable;
move-result-object v2
invoke-static {}, Lcom/discord/stores/StoreStream;->getGuilds()Lcom/discord/stores/StoreGuilds;
move-result-object v0
iget-wide v3, p0, Lcom/discord/widgets/servers/WidgetServerSettingsOverview$Model$Companion$get$1;->$guildId:J
invoke-virtual {v0, v3, v4}, Lcom/discord/stores/StoreGuilds;->getRegions(J)Lrx/Observable;
move-result-object v3
invoke-static {}, Lcom/discord/stores/StoreStream;->getChannels()Lcom/discord/stores/StoreChannels;
move-result-object v0
invoke-virtual {p1}, Lcom/discord/models/domain/ModelGuild;->getAfkChannelId()J
move-result-wide v4
invoke-virtual {v0, v4, v5}, Lcom/discord/stores/StoreChannels;->get(J)Lrx/Observable;
move-result-object v4
invoke-static {}, Lcom/discord/stores/StoreStream;->getChannels()Lcom/discord/stores/StoreChannels;
move-result-object v0
invoke-virtual {p1}, Lcom/discord/models/domain/ModelGuild;->getSystemChannelId()J
move-result-wide v5
invoke-virtual {v0, v5, v6}, Lcom/discord/stores/StoreChannels;->get(J)Lrx/Observable;
move-result-object v5
invoke-static {}, Lcom/discord/stores/StoreStream;->getPermissions()Lcom/discord/stores/StorePermissions;
move-result-object v0
iget-wide v6, p0, Lcom/discord/widgets/servers/WidgetServerSettingsOverview$Model$Companion$get$1;->$guildId:J
invoke-virtual {v0, v6, v7}, Lcom/discord/stores/StorePermissions;->getForGuild(J)Lrx/Observable;
move-result-object v6
new-instance v0, Lcom/discord/widgets/servers/WidgetServerSettingsOverview$Model$Companion$get$1$1;
invoke-direct {v0, p1}, Lcom/discord/widgets/servers/WidgetServerSettingsOverview$Model$Companion$get$1$1;-><init>(Lcom/discord/models/domain/ModelGuild;)V
move-object v7, v0
check-cast v7, Lrx/functions/Func5;
invoke-static/range {v2 .. v7}, Lrx/Observable;->a(Lrx/Observable;Lrx/Observable;Lrx/Observable;Lrx/Observable;Lrx/Observable;Lrx/functions/Func5;)Lrx/Observable;
move-result-object p1
return-object p1
.end method