apkfuckery/com.discord/smali/com/discord/stores/StoreVoiceParticipants$get$...

161 lines
4.6 KiB
Smali

.class public final Lcom/discord/stores/StoreVoiceParticipants$get$1;
.super Ljava/lang/Object;
.source "StoreVoiceParticipants.kt"
# interfaces
.implements Ll0/k/b;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/discord/stores/StoreVoiceParticipants;->get(J)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;",
"Ll0/k/b<",
"Lcom/discord/models/domain/ModelChannel;",
"Lrx/Observable<",
"+",
"Ljava/util/Map<",
"Ljava/lang/Long;",
"+",
"Lcom/discord/stores/StoreVoiceParticipants$VoiceUser;",
">;>;>;"
}
.end annotation
# instance fields
.field public final synthetic $channelId:J
.field public final synthetic this$0:Lcom/discord/stores/StoreVoiceParticipants;
# direct methods
.method public constructor <init>(Lcom/discord/stores/StoreVoiceParticipants;J)V
.locals 0
iput-object p1, p0, Lcom/discord/stores/StoreVoiceParticipants$get$1;->this$0:Lcom/discord/stores/StoreVoiceParticipants;
iput-wide p2, p0, Lcom/discord/stores/StoreVoiceParticipants$get$1;->$channelId:J
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, Lcom/discord/models/domain/ModelChannel;
invoke-virtual {p0, p1}, Lcom/discord/stores/StoreVoiceParticipants$get$1;->call(Lcom/discord/models/domain/ModelChannel;)Lrx/Observable;
move-result-object p1
return-object p1
.end method
.method public final call(Lcom/discord/models/domain/ModelChannel;)Lrx/Observable;
.locals 5
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/discord/models/domain/ModelChannel;",
")",
"Lrx/Observable<",
"+",
"Ljava/util/Map<",
"Ljava/lang/Long;",
"Lcom/discord/stores/StoreVoiceParticipants$VoiceUser;",
">;>;"
}
.end annotation
if-nez p1, :cond_0
sget-object p1, Lc0/i/m;->d:Lc0/i/m;
new-instance v0, Ll0/l/e/j;
invoke-direct {v0, p1}, Ll0/l/e/j;-><init>(Ljava/lang/Object;)V
goto :goto_1
:cond_0
invoke-virtual {p1}, Lcom/discord/models/domain/ModelChannel;->isPrivate()Z
move-result v0
if-eqz v0, :cond_1
const-wide/16 v0, 0x0
goto :goto_0
:cond_1
invoke-virtual {p1}, Lcom/discord/models/domain/ModelChannel;->getGuildId()Ljava/lang/Long;
move-result-object v0
const-string v1, "channel.guildId"
invoke-static {v0, v1}, Lc0/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {v0}, Ljava/lang/Long;->longValue()J
move-result-wide v0
:goto_0
iget-object v2, p0, Lcom/discord/stores/StoreVoiceParticipants$get$1;->this$0:Lcom/discord/stores/StoreVoiceParticipants;
invoke-virtual {v2}, Lcom/discord/stores/StoreVoiceParticipants;->getStream()Lcom/discord/stores/StoreStream;
move-result-object v2
invoke-virtual {v2}, Lcom/discord/stores/StoreStream;->getUsers$app_productionDiscordExternalRelease()Lcom/discord/stores/StoreUser;
move-result-object v2
invoke-virtual {v2}, Lcom/discord/stores/StoreUser;->observeMe()Lrx/Observable;
move-result-object v2
iget-object v3, p0, Lcom/discord/stores/StoreVoiceParticipants$get$1;->this$0:Lcom/discord/stores/StoreVoiceParticipants;
invoke-static {v3, p1}, Lcom/discord/stores/StoreVoiceParticipants;->access$getOtherUsers(Lcom/discord/stores/StoreVoiceParticipants;Lcom/discord/models/domain/ModelChannel;)Lrx/Observable;
move-result-object v3
sget-object v4, Lcom/discord/stores/StoreVoiceParticipants$get$1$1;->INSTANCE:Lcom/discord/stores/StoreVoiceParticipants$get$1$1;
invoke-static {v2, v3, v4}, Lrx/Observable;->j(Lrx/Observable;Lrx/Observable;Lrx/functions/Func2;)Lrx/Observable;
move-result-object v2
new-instance v3, Lcom/discord/stores/StoreVoiceParticipants$get$1$2;
invoke-direct {v3, p0, v0, v1, p1}, Lcom/discord/stores/StoreVoiceParticipants$get$1$2;-><init>(Lcom/discord/stores/StoreVoiceParticipants$get$1;JLcom/discord/models/domain/ModelChannel;)V
invoke-virtual {v2, v3}, Lrx/Observable;->V(Ll0/k/b;)Lrx/Observable;
move-result-object v0
:goto_1
return-object v0
.end method