2020-11-12 02:11:44 +00:00
|
|
|
.class public final Lcom/discord/utilities/streams/StreamContextService$getForUser$1$3;
|
|
|
|
.super Ljava/lang/Object;
|
|
|
|
.source "StreamContextService.kt"
|
|
|
|
|
|
|
|
# interfaces
|
|
|
|
.implements Lrx/functions/Func9;
|
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
|
|
value = Lcom/discord/utilities/streams/StreamContextService$getForUser$1;->call(Lcom/discord/models/domain/ModelApplicationStream;)Lrx/Observable;
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
|
|
accessFlags = 0x19
|
|
|
|
name = null
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"<T1:",
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
"T2:",
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
"T3:",
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
"T4:",
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
"T5:",
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
"T6:",
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
"T7:",
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
"T8:",
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
"T9:",
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
"R:",
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
">",
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
"Lrx/functions/Func9<",
|
|
|
|
"Lcom/discord/models/domain/ModelGuild;",
|
|
|
|
"Lcom/discord/stores/StoreApplicationStreamPreviews$StreamPreview;",
|
|
|
|
"Ljava/lang/Long;",
|
|
|
|
"Lcom/discord/models/domain/ModelUser;",
|
|
|
|
"Lcom/discord/models/domain/ModelUser;",
|
|
|
|
"Ljava/lang/String;",
|
|
|
|
"Ljava/util/Map<",
|
|
|
|
"Ljava/lang/Long;",
|
|
|
|
"+",
|
|
|
|
"Lcom/discord/models/domain/ModelVoice$State;",
|
|
|
|
">;",
|
|
|
|
"Lcom/discord/models/domain/ModelChannel;",
|
|
|
|
"Lcom/discord/stores/StoreApplicationStreaming$ActiveApplicationStream;",
|
|
|
|
"Lcom/discord/utilities/streams/StreamContext;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
|
|
|
.field public final synthetic $stream:Lcom/discord/models/domain/ModelApplicationStream;
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method public constructor <init>(Lcom/discord/models/domain/ModelApplicationStream;)V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
iput-object p1, p0, Lcom/discord/utilities/streams/StreamContextService$getForUser$1$3;->$stream:Lcom/discord/models/domain/ModelApplicationStream;
|
|
|
|
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public final call(Lcom/discord/models/domain/ModelGuild;Lcom/discord/stores/StoreApplicationStreamPreviews$StreamPreview;Ljava/lang/Long;Lcom/discord/models/domain/ModelUser;Lcom/discord/models/domain/ModelUser;Ljava/lang/String;Ljava/util/Map;Lcom/discord/models/domain/ModelChannel;Lcom/discord/stores/StoreApplicationStreaming$ActiveApplicationStream;)Lcom/discord/utilities/streams/StreamContext;
|
|
|
|
.locals 13
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(",
|
|
|
|
"Lcom/discord/models/domain/ModelGuild;",
|
|
|
|
"Lcom/discord/stores/StoreApplicationStreamPreviews$StreamPreview;",
|
|
|
|
"Ljava/lang/Long;",
|
|
|
|
"Lcom/discord/models/domain/ModelUser;",
|
|
|
|
"Lcom/discord/models/domain/ModelUser;",
|
|
|
|
"Ljava/lang/String;",
|
|
|
|
"Ljava/util/Map<",
|
|
|
|
"Ljava/lang/Long;",
|
|
|
|
"+",
|
|
|
|
"Lcom/discord/models/domain/ModelVoice$State;",
|
|
|
|
">;",
|
|
|
|
"Lcom/discord/models/domain/ModelChannel;",
|
|
|
|
"Lcom/discord/stores/StoreApplicationStreaming$ActiveApplicationStream;",
|
|
|
|
")",
|
|
|
|
"Lcom/discord/utilities/streams/StreamContext;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
move-object v0, p0
|
|
|
|
|
|
|
|
move-object/from16 v1, p3
|
|
|
|
|
|
|
|
iget-object v2, v0, Lcom/discord/utilities/streams/StreamContextService$getForUser$1$3;->$stream:Lcom/discord/models/domain/ModelApplicationStream;
|
|
|
|
|
|
|
|
instance-of v2, v2, Lcom/discord/models/domain/ModelApplicationStream$GuildStream;
|
|
|
|
|
|
|
|
if-eqz v2, :cond_0
|
|
|
|
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
if-nez p4, :cond_2
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
goto/16 :goto_5
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
const/4 v2, 0x0
|
|
|
|
|
|
|
|
if-eqz p8, :cond_3
|
|
|
|
|
|
|
|
invoke-virtual/range {p8 .. p8}, Lcom/discord/models/domain/ModelChannel;->getUserLimit()I
|
|
|
|
|
|
|
|
move-result v3
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
const/4 v3, 0x0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
const/4 v4, 0x1
|
|
|
|
|
|
|
|
if-lez v3, :cond_4
|
|
|
|
|
|
|
|
invoke-interface/range {p7 .. p7}, Ljava/util/Map;->size()I
|
|
|
|
|
|
|
|
move-result v5
|
|
|
|
|
|
|
|
if-lt v5, v3, :cond_4
|
|
|
|
|
|
|
|
const/4 v3, 0x1
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_4
|
|
|
|
const/4 v3, 0x0
|
|
|
|
|
|
|
|
:goto_1
|
|
|
|
const-wide/32 v5, 0x100000
|
|
|
|
|
|
|
|
invoke-static {v5, v6, v1}, Lcom/discord/utilities/permissions/PermissionUtils;->can(JLjava/lang/Long;)Z
|
|
|
|
|
|
|
|
move-result v5
|
|
|
|
|
|
|
|
const-wide/16 v6, 0x10
|
|
|
|
|
|
|
|
invoke-static {v6, v7, v1}, Lcom/discord/utilities/permissions/PermissionUtils;->can(JLjava/lang/Long;)Z
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
iget-object v6, v0, Lcom/discord/utilities/streams/StreamContextService$getForUser$1$3;->$stream:Lcom/discord/models/domain/ModelApplicationStream;
|
|
|
|
|
|
|
|
instance-of v6, v6, Lcom/discord/models/domain/ModelApplicationStream$GuildStream;
|
|
|
|
|
|
|
|
if-eqz v6, :cond_5
|
|
|
|
|
|
|
|
if-nez v5, :cond_5
|
|
|
|
|
|
|
|
sget-object v1, Lcom/discord/utilities/streams/StreamContext$Joinability;->MISSING_PERMISSIONS:Lcom/discord/utilities/streams/StreamContext$Joinability;
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_5
|
|
|
|
if-eqz v3, :cond_6
|
|
|
|
|
|
|
|
if-nez v1, :cond_6
|
|
|
|
|
|
|
|
sget-object v1, Lcom/discord/utilities/streams/StreamContext$Joinability;->VOICE_CHANNEL_FULL:Lcom/discord/utilities/streams/StreamContext$Joinability;
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_6
|
|
|
|
sget-object v1, Lcom/discord/utilities/streams/StreamContext$Joinability;->CAN_CONNECT:Lcom/discord/utilities/streams/StreamContext$Joinability;
|
|
|
|
|
|
|
|
:goto_2
|
|
|
|
move-object v7, v1
|
|
|
|
|
|
|
|
if-eqz p9, :cond_7
|
|
|
|
|
|
|
|
invoke-virtual/range {p9 .. p9}, Lcom/discord/stores/StoreApplicationStreaming$ActiveApplicationStream;->getState()Lcom/discord/stores/StoreApplicationStreaming$ActiveApplicationStream$State;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Lcom/discord/stores/StoreApplicationStreaming$ActiveApplicationStream$State;->isStreamActive()Z
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
if-eqz v1, :cond_7
|
|
|
|
|
|
|
|
invoke-virtual/range {p9 .. p9}, Lcom/discord/stores/StoreApplicationStreaming$ActiveApplicationStream;->getStream()Lcom/discord/models/domain/ModelApplicationStream;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
iget-object v3, v0, Lcom/discord/utilities/streams/StreamContextService$getForUser$1$3;->$stream:Lcom/discord/models/domain/ModelApplicationStream;
|
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
invoke-static {v1, v3}, Lz/n/c/j;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
if-eqz v1, :cond_7
|
|
|
|
|
|
|
|
const/4 v10, 0x1
|
|
|
|
|
|
|
|
goto :goto_3
|
|
|
|
|
|
|
|
:cond_7
|
|
|
|
const/4 v10, 0x0
|
|
|
|
|
|
|
|
:goto_3
|
|
|
|
new-instance v1, Lcom/discord/utilities/streams/StreamContext;
|
|
|
|
|
|
|
|
iget-object v5, v0, Lcom/discord/utilities/streams/StreamContextService$getForUser$1$3;->$stream:Lcom/discord/models/domain/ModelApplicationStream;
|
|
|
|
|
|
|
|
invoke-virtual/range {p4 .. p4}, Lcom/discord/models/domain/ModelUser;->getId()J
|
|
|
|
|
|
|
|
move-result-wide v8
|
|
|
|
|
|
|
|
const-string v3, "me"
|
|
|
|
|
|
|
|
move-object/from16 v6, p5
|
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
invoke-static {v6, v3}, Lz/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
invoke-virtual/range {p5 .. p5}, Lcom/discord/models/domain/ModelUser;->getId()J
|
|
|
|
|
|
|
|
move-result-wide v11
|
|
|
|
|
|
|
|
cmp-long v3, v8, v11
|
|
|
|
|
|
|
|
if-nez v3, :cond_8
|
|
|
|
|
|
|
|
const/4 v11, 0x1
|
|
|
|
|
|
|
|
goto :goto_4
|
|
|
|
|
|
|
|
:cond_8
|
|
|
|
const/4 v11, 0x0
|
|
|
|
|
|
|
|
:goto_4
|
|
|
|
move-object v3, v1
|
|
|
|
|
|
|
|
move-object v4, v5
|
|
|
|
|
|
|
|
move-object v5, p1
|
|
|
|
|
|
|
|
move-object v6, p2
|
|
|
|
|
|
|
|
move-object/from16 v8, p4
|
|
|
|
|
|
|
|
move-object/from16 v9, p6
|
|
|
|
|
|
|
|
invoke-direct/range {v3 .. v11}, Lcom/discord/utilities/streams/StreamContext;-><init>(Lcom/discord/models/domain/ModelApplicationStream;Lcom/discord/models/domain/ModelGuild;Lcom/discord/stores/StoreApplicationStreamPreviews$StreamPreview;Lcom/discord/utilities/streams/StreamContext$Joinability;Lcom/discord/models/domain/ModelUser;Ljava/lang/String;ZZ)V
|
|
|
|
|
|
|
|
:goto_5
|
|
|
|
return-object v1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public bridge synthetic call(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
check-cast p1, Lcom/discord/models/domain/ModelGuild;
|
|
|
|
|
|
|
|
check-cast p2, Lcom/discord/stores/StoreApplicationStreamPreviews$StreamPreview;
|
|
|
|
|
|
|
|
check-cast p3, Ljava/lang/Long;
|
|
|
|
|
|
|
|
check-cast p4, Lcom/discord/models/domain/ModelUser;
|
|
|
|
|
|
|
|
check-cast p5, Lcom/discord/models/domain/ModelUser;
|
|
|
|
|
|
|
|
check-cast p6, Ljava/lang/String;
|
|
|
|
|
|
|
|
check-cast p7, Ljava/util/Map;
|
|
|
|
|
|
|
|
check-cast p8, Lcom/discord/models/domain/ModelChannel;
|
|
|
|
|
|
|
|
check-cast p9, Lcom/discord/stores/StoreApplicationStreaming$ActiveApplicationStream;
|
|
|
|
|
|
|
|
invoke-virtual/range {p0 .. p9}, Lcom/discord/utilities/streams/StreamContextService$getForUser$1$3;->call(Lcom/discord/models/domain/ModelGuild;Lcom/discord/stores/StoreApplicationStreamPreviews$StreamPreview;Ljava/lang/Long;Lcom/discord/models/domain/ModelUser;Lcom/discord/models/domain/ModelUser;Ljava/lang/String;Ljava/util/Map;Lcom/discord/models/domain/ModelChannel;Lcom/discord/stores/StoreApplicationStreaming$ActiveApplicationStream;)Lcom/discord/utilities/streams/StreamContext;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
return-object p1
|
|
|
|
.end method
|