139 lines
5 KiB
Smali
139 lines
5 KiB
Smali
.class public final Lcom/discord/utilities/voice/VoiceChannelJoinabilityUtils$observeJoinability$1;
|
|
.super Ljava/lang/Object;
|
|
.source "VoiceChannelJoinabilityUtils.kt"
|
|
|
|
# interfaces
|
|
.implements Lh0/l/i;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
value = Lcom/discord/utilities/voice/VoiceChannelJoinabilityUtils;->observeJoinability(JLcom/discord/stores/StoreChannels;Lcom/discord/stores/StorePermissions;Lcom/discord/stores/StoreVoiceStates;Lcom/discord/stores/StoreExperiments;)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;",
|
|
"Lh0/l/i<",
|
|
"TT;",
|
|
"Lrx/Observable<",
|
|
"+TR;>;>;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public final synthetic $channelId:J
|
|
|
|
.field public final synthetic $experimentStore:Lcom/discord/stores/StoreExperiments;
|
|
|
|
.field public final synthetic $permissionsStore:Lcom/discord/stores/StorePermissions;
|
|
|
|
.field public final synthetic $voiceStatesStore:Lcom/discord/stores/StoreVoiceStates;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lcom/discord/stores/StoreVoiceStates;JLcom/discord/stores/StorePermissions;Lcom/discord/stores/StoreExperiments;)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Lcom/discord/utilities/voice/VoiceChannelJoinabilityUtils$observeJoinability$1;->$voiceStatesStore:Lcom/discord/stores/StoreVoiceStates;
|
|
|
|
iput-wide p2, p0, Lcom/discord/utilities/voice/VoiceChannelJoinabilityUtils$observeJoinability$1;->$channelId:J
|
|
|
|
iput-object p4, p0, Lcom/discord/utilities/voice/VoiceChannelJoinabilityUtils$observeJoinability$1;->$permissionsStore:Lcom/discord/stores/StorePermissions;
|
|
|
|
iput-object p5, p0, Lcom/discord/utilities/voice/VoiceChannelJoinabilityUtils$observeJoinability$1;->$experimentStore:Lcom/discord/stores/StoreExperiments;
|
|
|
|
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/utilities/voice/VoiceChannelJoinabilityUtils$observeJoinability$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<",
|
|
"Lcom/discord/utilities/voice/VoiceChannelJoinability;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
sget-object p1, Lcom/discord/utilities/voice/VoiceChannelJoinability;->CHANNEL_DOES_NOT_EXIST:Lcom/discord/utilities/voice/VoiceChannelJoinability;
|
|
|
|
new-instance v0, Lh0/m/e/j;
|
|
|
|
invoke-direct {v0, p1}, Lh0/m/e/j;-><init>(Ljava/lang/Object;)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/discord/utilities/voice/VoiceChannelJoinabilityUtils$observeJoinability$1;->$voiceStatesStore:Lcom/discord/stores/StoreVoiceStates;
|
|
|
|
const-string v1, "channel.guildId"
|
|
|
|
invoke-static {p1, v1}, Lf/e/b/a/a;->a(Lcom/discord/models/domain/ModelChannel;Ljava/lang/String;)J
|
|
|
|
move-result-wide v1
|
|
|
|
iget-wide v3, p0, Lcom/discord/utilities/voice/VoiceChannelJoinabilityUtils$observeJoinability$1;->$channelId:J
|
|
|
|
invoke-virtual {v0, v1, v2, v3, v4}, Lcom/discord/stores/StoreVoiceStates;->get(JJ)Lrx/Observable;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v1, p0, Lcom/discord/utilities/voice/VoiceChannelJoinabilityUtils$observeJoinability$1;->$permissionsStore:Lcom/discord/stores/StorePermissions;
|
|
|
|
iget-wide v2, p0, Lcom/discord/utilities/voice/VoiceChannelJoinabilityUtils$observeJoinability$1;->$channelId:J
|
|
|
|
invoke-virtual {v1, v2, v3}, Lcom/discord/stores/StorePermissions;->getForChannel(J)Lrx/Observable;
|
|
|
|
move-result-object v1
|
|
|
|
iget-object v2, p0, Lcom/discord/utilities/voice/VoiceChannelJoinabilityUtils$observeJoinability$1;->$experimentStore:Lcom/discord/stores/StoreExperiments;
|
|
|
|
invoke-static {v2}, Lcom/discord/widgets/voice/fullscreen/GuildVideoFeatureFlagKt;->observeGuildVideoEligibility(Lcom/discord/stores/StoreExperiments;)Lrx/Observable;
|
|
|
|
move-result-object v2
|
|
|
|
new-instance v3, Lcom/discord/utilities/voice/VoiceChannelJoinabilityUtils$observeJoinability$1$1;
|
|
|
|
invoke-direct {v3, p1}, Lcom/discord/utilities/voice/VoiceChannelJoinabilityUtils$observeJoinability$1$1;-><init>(Lcom/discord/models/domain/ModelChannel;)V
|
|
|
|
invoke-static {v0, v1, v2, v3}, Lrx/Observable;->a(Lrx/Observable;Lrx/Observable;Lrx/Observable;Lrx/functions/Func3;)Lrx/Observable;
|
|
|
|
move-result-object v0
|
|
|
|
:goto_0
|
|
return-object v0
|
|
.end method
|