149 lines
5.2 KiB
Smali
149 lines
5.2 KiB
Smali
.class public final Lcom/discord/utilities/voice/VoiceChannelJoinabilityUtils$observeJoinability$1;
|
|
.super Ljava/lang/Object;
|
|
.source "VoiceChannelJoinabilityUtils.kt"
|
|
|
|
# interfaces
|
|
.implements Lg0/l/i;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
value = Lcom/discord/utilities/voice/VoiceChannelJoinabilityUtils;->observeJoinability(JLcom/discord/stores/StoreChannels;Lcom/discord/stores/StoreGuilds;Lcom/discord/stores/StorePermissions;Lcom/discord/stores/StoreVoiceStates;)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;",
|
|
"Lg0/l/i<",
|
|
"TT;",
|
|
"Lrx/Observable<",
|
|
"+TR;>;>;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public final synthetic $channelId:J
|
|
|
|
.field public final synthetic $guildsStore:Lcom/discord/stores/StoreGuilds;
|
|
|
|
.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/StoreGuilds;)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;->$guildsStore:Lcom/discord/stores/StoreGuilds;
|
|
|
|
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 6
|
|
.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, Lg0/m/e/j;
|
|
|
|
invoke-direct {v0, p1}, Lg0/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 v2
|
|
|
|
iget-wide v4, p0, Lcom/discord/utilities/voice/VoiceChannelJoinabilityUtils$observeJoinability$1;->$channelId:J
|
|
|
|
invoke-virtual {v0, v2, v3, v4, v5}, Lcom/discord/stores/StoreVoiceStates;->get(JJ)Lrx/Observable;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v2, p0, Lcom/discord/utilities/voice/VoiceChannelJoinabilityUtils$observeJoinability$1;->$permissionsStore:Lcom/discord/stores/StorePermissions;
|
|
|
|
iget-wide v3, p0, Lcom/discord/utilities/voice/VoiceChannelJoinabilityUtils$observeJoinability$1;->$channelId:J
|
|
|
|
invoke-virtual {v2, v3, v4}, Lcom/discord/stores/StorePermissions;->getForChannel(J)Lrx/Observable;
|
|
|
|
move-result-object v2
|
|
|
|
iget-object v3, p0, Lcom/discord/utilities/voice/VoiceChannelJoinabilityUtils$observeJoinability$1;->$guildsStore:Lcom/discord/stores/StoreGuilds;
|
|
|
|
invoke-virtual {p1}, Lcom/discord/models/domain/ModelChannel;->getGuildId()Ljava/lang/Long;
|
|
|
|
move-result-object v4
|
|
|
|
invoke-static {v4, v1}, Ly/v/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v4}, Ljava/lang/Long;->longValue()J
|
|
|
|
move-result-wide v4
|
|
|
|
invoke-virtual {v3, v4, v5}, Lcom/discord/stores/StoreGuilds;->observeGuild(J)Lrx/Observable;
|
|
|
|
move-result-object v1
|
|
|
|
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, v2, v1, 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
|