apkfuckery/com.discord/smali/com/discord/widgets/voice/call/WidgetVoiceCallInline$Model$VoiceConnected$Companion$get$1.smali
2019-05-14 23:53:09 +02:00

199 lines
6.1 KiB
Smali

.class final Lcom/discord/widgets/voice/call/WidgetVoiceCallInline$Model$VoiceConnected$Companion$get$1;
.super Ljava/lang/Object;
.source "WidgetVoiceCallInline.kt"
# interfaces
.implements Lrx/functions/b;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/discord/widgets/voice/call/WidgetVoiceCallInline$Model$VoiceConnected$Companion;->get()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
# static fields
.field public static final INSTANCE:Lcom/discord/widgets/voice/call/WidgetVoiceCallInline$Model$VoiceConnected$Companion$get$1;
# direct methods
.method static constructor <clinit>()V
.locals 1
new-instance v0, Lcom/discord/widgets/voice/call/WidgetVoiceCallInline$Model$VoiceConnected$Companion$get$1;
invoke-direct {v0}, Lcom/discord/widgets/voice/call/WidgetVoiceCallInline$Model$VoiceConnected$Companion$get$1;-><init>()V
sput-object v0, Lcom/discord/widgets/voice/call/WidgetVoiceCallInline$Model$VoiceConnected$Companion$get$1;->INSTANCE:Lcom/discord/widgets/voice/call/WidgetVoiceCallInline$Model$VoiceConnected$Companion$get$1;
return-void
.end method
.method constructor <init>()V
.locals 0
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/ModelChannel;
invoke-virtual {p0, p1}, Lcom/discord/widgets/voice/call/WidgetVoiceCallInline$Model$VoiceConnected$Companion$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 7
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/discord/models/domain/ModelChannel;",
")",
"Lrx/Observable<",
"+",
"Lcom/discord/widgets/voice/call/WidgetVoiceCallInline$Model$VoiceConnected;",
">;"
}
.end annotation
if-nez p1, :cond_0
const/4 p1, 0x0
invoke-static {p1}, Lrx/Observable;->bA(Ljava/lang/Object;)Lrx/Observable;
move-result-object p1
return-object p1
:cond_0
invoke-static {p1}, Lrx/Observable;->bA(Ljava/lang/Object;)Lrx/Observable;
move-result-object v0
invoke-static {}, Lcom/discord/stores/StoreStream;->getRtcConnection()Lcom/discord/stores/StoreRtcConnection;
move-result-object v1
invoke-virtual {v1}, Lcom/discord/stores/StoreRtcConnection;->getConnectionState()Lrx/Observable;
move-result-object v1
invoke-static {}, Lcom/discord/stores/StoreStream;->getRtcConnection()Lcom/discord/stores/StoreRtcConnection;
move-result-object v2
invoke-virtual {v2}, Lcom/discord/stores/StoreRtcConnection;->getQuality()Lrx/Observable;
move-result-object v2
invoke-static {}, Lcom/discord/stores/StoreStream;->getGuilds()Lcom/discord/stores/StoreGuilds;
move-result-object v3
invoke-virtual {p1}, Lcom/discord/models/domain/ModelChannel;->getGuildId()J
move-result-wide v4
invoke-virtual {v3, v4, v5}, Lcom/discord/stores/StoreGuilds;->get(J)Lrx/Observable;
move-result-object v3
new-instance v4, Lcom/discord/widgets/voice/call/WidgetVoiceCallInline$Model$VoiceConnected$Companion$get$1$1;
invoke-direct {v4, p1}, Lcom/discord/widgets/voice/call/WidgetVoiceCallInline$Model$VoiceConnected$Companion$get$1$1;-><init>(Lcom/discord/models/domain/ModelChannel;)V
check-cast v4, Lrx/functions/b;
invoke-virtual {v3, v4}, Lrx/Observable;->e(Lrx/functions/b;)Lrx/Observable;
move-result-object v3
invoke-virtual {v3}, Lrx/Observable;->Fp()Lrx/Observable;
move-result-object v3
invoke-static {}, Lcom/discord/stores/StoreStream;->getVoiceParticipants()Lcom/discord/stores/StoreVoiceParticipants;
move-result-object v4
invoke-virtual {p1}, Lcom/discord/models/domain/ModelChannel;->getId()J
move-result-wide v5
invoke-virtual {v4, v5, v6}, Lcom/discord/stores/StoreVoiceParticipants;->get(J)Lrx/Observable;
move-result-object p1
sget-object v4, Lcom/discord/widgets/voice/call/WidgetVoiceCallInline$Model$VoiceConnected$Companion$get$1$2;->INSTANCE:Lcom/discord/widgets/voice/call/WidgetVoiceCallInline$Model$VoiceConnected$Companion$get$1$2;
check-cast v4, Lrx/functions/b;
invoke-virtual {p1, v4}, Lrx/Observable;->g(Lrx/functions/b;)Lrx/Observable;
move-result-object p1
invoke-virtual {p1}, Lrx/Observable;->Fp()Lrx/Observable;
move-result-object v4
invoke-static {}, Lcom/discord/stores/StoreStream;->getMediaSettings()Lcom/discord/stores/StoreMediaSettings;
move-result-object p1
invoke-virtual {p1}, Lcom/discord/stores/StoreMediaSettings;->getInputMode()Lrx/Observable;
move-result-object v5
sget-object p1, Lcom/discord/widgets/voice/call/WidgetVoiceCallInline$Model$VoiceConnected$Companion$get$1$3;->INSTANCE:Lcom/discord/widgets/voice/call/WidgetVoiceCallInline$Model$VoiceConnected$Companion$get$1$3;
check-cast p1, Lkotlin/jvm/functions/Function6;
if-eqz p1, :cond_1
new-instance v6, Lcom/discord/widgets/voice/call/WidgetVoiceCallInline$sam$rx_functions_Func6$0;
invoke-direct {v6, p1}, Lcom/discord/widgets/voice/call/WidgetVoiceCallInline$sam$rx_functions_Func6$0;-><init>(Lkotlin/jvm/functions/Function6;)V
move-object p1, v6
:cond_1
move-object v6, p1
check-cast v6, Lrx/functions/Func6;
invoke-static/range {v0 .. v6}, Lrx/Observable;->a(Lrx/Observable;Lrx/Observable;Lrx/Observable;Lrx/Observable;Lrx/Observable;Lrx/Observable;Lrx/functions/Func6;)Lrx/Observable;
move-result-object p1
return-object p1
.end method