2020-09-02 04:07:20 +00:00
|
|
|
.class public final Lcom/discord/stores/StoreApplicationStreaming$createStream$1;
|
2020-09-18 16:51:32 +00:00
|
|
|
.super Lk0/n/c/j;
|
2020-09-02 04:07:20 +00:00
|
|
|
.source "StoreApplicationStreaming.kt"
|
|
|
|
|
|
|
|
# interfaces
|
|
|
|
.implements Lkotlin/jvm/functions/Function0;
|
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
|
|
value = Lcom/discord/stores/StoreApplicationStreaming;->createStream(JLjava/lang/Long;Ljava/lang/String;)V
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
|
|
accessFlags = 0x19
|
|
|
|
name = null
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
2020-09-18 16:51:32 +00:00
|
|
|
"Lk0/n/c/j;",
|
2020-09-02 04:07:20 +00:00
|
|
|
"Lkotlin/jvm/functions/Function0<",
|
|
|
|
"Lkotlin/Unit;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
|
|
|
.field public final synthetic $channelId:J
|
|
|
|
|
|
|
|
.field public final synthetic $guildId:Ljava/lang/Long;
|
|
|
|
|
|
|
|
.field public final synthetic $preferredRegion:Ljava/lang/String;
|
|
|
|
|
|
|
|
.field public final synthetic this$0:Lcom/discord/stores/StoreApplicationStreaming;
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method public constructor <init>(Lcom/discord/stores/StoreApplicationStreaming;JLjava/lang/Long;Ljava/lang/String;)V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
iput-object p1, p0, Lcom/discord/stores/StoreApplicationStreaming$createStream$1;->this$0:Lcom/discord/stores/StoreApplicationStreaming;
|
|
|
|
|
|
|
|
iput-wide p2, p0, Lcom/discord/stores/StoreApplicationStreaming$createStream$1;->$channelId:J
|
|
|
|
|
|
|
|
iput-object p4, p0, Lcom/discord/stores/StoreApplicationStreaming$createStream$1;->$guildId:Ljava/lang/Long;
|
|
|
|
|
|
|
|
iput-object p5, p0, Lcom/discord/stores/StoreApplicationStreaming$createStream$1;->$preferredRegion:Ljava/lang/String;
|
|
|
|
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
2020-09-18 16:51:32 +00:00
|
|
|
invoke-direct {p0, p1}, Lk0/n/c/j;-><init>(I)V
|
2020-09-02 04:07:20 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public bridge synthetic invoke()Ljava/lang/Object;
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Lcom/discord/stores/StoreApplicationStreaming$createStream$1;->invoke()V
|
|
|
|
|
|
|
|
sget-object v0, Lkotlin/Unit;->a:Lkotlin/Unit;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final invoke()V
|
|
|
|
.locals 9
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/stores/StoreApplicationStreaming$createStream$1;->this$0:Lcom/discord/stores/StoreApplicationStreaming;
|
|
|
|
|
|
|
|
invoke-static {v0}, Lcom/discord/stores/StoreApplicationStreaming;->access$getRtcConnectionStore$p(Lcom/discord/stores/StoreApplicationStreaming;)Lcom/discord/stores/StoreRtcConnection;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Lcom/discord/stores/StoreRtcConnection;->getRtcConnection$app_productionDiscordExternalRelease()Lcom/discord/rtcconnection/RtcConnection;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_7
|
|
|
|
|
|
|
|
iget-wide v1, v0, Lcom/discord/rtcconnection/RtcConnection;->w:J
|
|
|
|
|
|
|
|
iget-wide v3, p0, Lcom/discord/stores/StoreApplicationStreaming$createStream$1;->$channelId:J
|
|
|
|
|
|
|
|
cmp-long v5, v1, v3
|
|
|
|
|
|
|
|
if-nez v5, :cond_7
|
|
|
|
|
|
|
|
iget-object v0, v0, Lcom/discord/rtcconnection/RtcConnection;->v:Ljava/lang/Long;
|
|
|
|
|
|
|
|
iget-object v1, p0, Lcom/discord/stores/StoreApplicationStreaming$createStream$1;->$guildId:Ljava/lang/Long;
|
|
|
|
|
2020-09-18 16:51:32 +00:00
|
|
|
invoke-static {v0, v1}, Lk0/n/c/i;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
2020-09-02 04:07:20 +00:00
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
const/4 v1, 0x1
|
|
|
|
|
|
|
|
xor-int/2addr v0, v1
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
goto/16 :goto_3
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
iget-object v0, p0, Lcom/discord/stores/StoreApplicationStreaming$createStream$1;->this$0:Lcom/discord/stores/StoreApplicationStreaming;
|
|
|
|
|
|
|
|
invoke-static {v0}, Lcom/discord/stores/StoreApplicationStreaming;->access$getUserStore$p(Lcom/discord/stores/StoreApplicationStreaming;)Lcom/discord/stores/StoreUser;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Lcom/discord/stores/StoreUser;->getMe()Lcom/discord/models/domain/ModelUser$Me;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_7
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Lcom/discord/models/domain/ModelUser;->getId()J
|
|
|
|
|
|
|
|
move-result-wide v7
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/stores/StoreApplicationStreaming$createStream$1;->$guildId:Ljava/lang/Long;
|
|
|
|
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
|
|
|
|
new-instance v0, Lcom/discord/models/domain/ModelApplicationStream$GuildStream;
|
|
|
|
|
|
|
|
iget-object v2, p0, Lcom/discord/stores/StoreApplicationStreaming$createStream$1;->$guildId:Ljava/lang/Long;
|
|
|
|
|
|
|
|
invoke-virtual {v2}, Ljava/lang/Long;->longValue()J
|
|
|
|
|
|
|
|
move-result-wide v3
|
|
|
|
|
|
|
|
iget-wide v5, p0, Lcom/discord/stores/StoreApplicationStreaming$createStream$1;->$channelId:J
|
|
|
|
|
|
|
|
move-object v2, v0
|
|
|
|
|
|
|
|
invoke-direct/range {v2 .. v8}, Lcom/discord/models/domain/ModelApplicationStream$GuildStream;-><init>(JJJ)V
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
new-instance v0, Lcom/discord/models/domain/ModelApplicationStream$CallStream;
|
|
|
|
|
|
|
|
iget-wide v2, p0, Lcom/discord/stores/StoreApplicationStreaming$createStream$1;->$channelId:J
|
|
|
|
|
|
|
|
invoke-direct {v0, v2, v3, v7, v8}, Lcom/discord/models/domain/ModelApplicationStream$CallStream;-><init>(JJ)V
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
iget-object v2, p0, Lcom/discord/stores/StoreApplicationStreaming$createStream$1;->this$0:Lcom/discord/stores/StoreApplicationStreaming;
|
|
|
|
|
|
|
|
invoke-virtual {v2}, Lcom/discord/stores/StoreApplicationStreaming;->getActiveApplicationStream$app_productionDiscordExternalRelease()Lcom/discord/stores/StoreApplicationStreaming$ActiveApplicationStream;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
if-eqz v2, :cond_2
|
|
|
|
|
|
|
|
invoke-virtual {v2}, Lcom/discord/stores/StoreApplicationStreaming$ActiveApplicationStream;->getStream()Lcom/discord/models/domain/ModelApplicationStream;
|
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
if-eqz v3, :cond_2
|
|
|
|
|
|
|
|
invoke-virtual {v3}, Lcom/discord/models/domain/ModelApplicationStream;->getEncodedStreamKey()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
const/4 v3, 0x0
|
|
|
|
|
|
|
|
:goto_1
|
|
|
|
invoke-virtual {v0}, Lcom/discord/models/domain/ModelApplicationStream;->getEncodedStreamKey()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
|
|
|
const/4 v5, 0x0
|
|
|
|
|
|
|
|
if-ne v3, v4, :cond_3
|
|
|
|
|
|
|
|
const/4 v3, 0x1
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
const/4 v3, 0x0
|
|
|
|
|
|
|
|
:goto_2
|
|
|
|
if-eqz v3, :cond_4
|
|
|
|
|
|
|
|
if-eqz v2, :cond_4
|
|
|
|
|
|
|
|
invoke-virtual {v2}, Lcom/discord/stores/StoreApplicationStreaming$ActiveApplicationStream;->getState()Lcom/discord/stores/StoreApplicationStreaming$ActiveApplicationStream$State;
|
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
if-eqz v3, :cond_4
|
|
|
|
|
|
|
|
invoke-virtual {v3}, Lcom/discord/stores/StoreApplicationStreaming$ActiveApplicationStream$State;->isStreamActive()Z
|
|
|
|
|
|
|
|
move-result v3
|
|
|
|
|
|
|
|
if-ne v3, v1, :cond_4
|
|
|
|
|
|
|
|
const/4 v5, 0x1
|
|
|
|
|
|
|
|
:cond_4
|
|
|
|
if-eqz v5, :cond_5
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_5
|
|
|
|
if-eqz v2, :cond_6
|
|
|
|
|
|
|
|
invoke-virtual {v2}, Lcom/discord/stores/StoreApplicationStreaming$ActiveApplicationStream;->getState()Lcom/discord/stores/StoreApplicationStreaming$ActiveApplicationStream$State;
|
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
if-eqz v3, :cond_6
|
|
|
|
|
|
|
|
invoke-virtual {v3}, Lcom/discord/stores/StoreApplicationStreaming$ActiveApplicationStream$State;->isStreamActive()Z
|
|
|
|
|
|
|
|
move-result v3
|
|
|
|
|
|
|
|
if-ne v3, v1, :cond_6
|
|
|
|
|
|
|
|
iget-object v1, p0, Lcom/discord/stores/StoreApplicationStreaming$createStream$1;->this$0:Lcom/discord/stores/StoreApplicationStreaming;
|
|
|
|
|
|
|
|
invoke-virtual {v2}, Lcom/discord/stores/StoreApplicationStreaming$ActiveApplicationStream;->getStream()Lcom/discord/models/domain/ModelApplicationStream;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
invoke-virtual {v2}, Lcom/discord/models/domain/ModelApplicationStream;->getEncodedStreamKey()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
invoke-static {v1, v2}, Lcom/discord/stores/StoreApplicationStreaming;->access$stopStreamInternal(Lcom/discord/stores/StoreApplicationStreaming;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
:cond_6
|
|
|
|
iget-object v1, p0, Lcom/discord/stores/StoreApplicationStreaming$createStream$1;->this$0:Lcom/discord/stores/StoreApplicationStreaming;
|
|
|
|
|
|
|
|
invoke-static {v1}, Lcom/discord/stores/StoreApplicationStreaming;->access$getStoreStream$p(Lcom/discord/stores/StoreApplicationStreaming;)Lcom/discord/stores/StoreStream;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Lcom/discord/models/domain/ModelApplicationStream;->getEncodedStreamKey()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
iget-object v2, p0, Lcom/discord/stores/StoreApplicationStreaming$createStream$1;->$preferredRegion:Ljava/lang/String;
|
|
|
|
|
|
|
|
invoke-virtual {v1, v0, v2}, Lcom/discord/stores/StoreStream;->streamCreate(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
:cond_7
|
|
|
|
:goto_3
|
|
|
|
return-void
|
|
|
|
.end method
|