2020-01-22 01:17:22 +00:00
|
|
|
.class public final Lcom/discord/views/OAuthPermissionViews;
|
|
|
|
.super Ljava/lang/Object;
|
|
|
|
.source "OAuthPermissionViews.kt"
|
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
|
|
value = {
|
|
|
|
Lcom/discord/views/OAuthPermissionViews$InvalidScopeException;,
|
|
|
|
Lcom/discord/views/OAuthPermissionViews$a;
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# static fields
|
|
|
|
.field public static final a:Lcom/discord/views/OAuthPermissionViews;
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method public static constructor <clinit>()V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
new-instance v0, Lcom/discord/views/OAuthPermissionViews;
|
|
|
|
|
|
|
|
invoke-direct {v0}, Lcom/discord/views/OAuthPermissionViews;-><init>()V
|
|
|
|
|
|
|
|
sput-object v0, Lcom/discord/views/OAuthPermissionViews;->a:Lcom/discord/views/OAuthPermissionViews;
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public constructor <init>()V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public final a(Lcom/discord/restapi/RestAPIParams$OAuth2Authorize$ResponseGet;Landroid/content/Context;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
.locals 9
|
|
|
|
.annotation build Landroidx/annotation/UiThread;
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
if-eqz p1, :cond_7
|
|
|
|
|
|
|
|
if-eqz p2, :cond_6
|
|
|
|
|
|
|
|
if-eqz p3, :cond_5
|
|
|
|
|
|
|
|
invoke-virtual {p3}, Ljava/lang/String;->hashCode()I
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
sparse-switch v1, :sswitch_data_0
|
|
|
|
|
|
|
|
goto/16 :goto_3
|
|
|
|
|
|
|
|
:sswitch_0
|
|
|
|
const-string p1, "applications.builds.read"
|
|
|
|
|
|
|
|
invoke-virtual {p3, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
if-eqz p1, :cond_4
|
|
|
|
|
2020-03-26 23:31:08 +00:00
|
|
|
const p1, 0x7f12115e
|
2020-01-22 01:17:22 +00:00
|
|
|
|
|
|
|
invoke-virtual {p2, p1}, Landroid/content/Context;->getString(I)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
goto/16 :goto_2
|
|
|
|
|
|
|
|
:sswitch_1
|
|
|
|
const-string p1, "applications.builds.upload"
|
|
|
|
|
|
|
|
invoke-virtual {p3, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
if-eqz p1, :cond_4
|
|
|
|
|
2020-03-26 23:31:08 +00:00
|
|
|
const p1, 0x7f121160
|
2020-01-22 01:17:22 +00:00
|
|
|
|
|
|
|
invoke-virtual {p2, p1}, Landroid/content/Context;->getString(I)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
goto/16 :goto_2
|
|
|
|
|
|
|
|
:sswitch_2
|
|
|
|
const-string v1, "connections"
|
|
|
|
|
|
|
|
invoke-virtual {p3, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
if-eqz v1, :cond_4
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lcom/discord/restapi/RestAPIParams$OAuth2Authorize$ResponseGet;->getConnections()Ljava/util/List;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
invoke-interface {p1}, Ljava/util/Collection;->isEmpty()Z
|
|
|
|
|
|
|
|
move-result p3
|
|
|
|
|
|
|
|
xor-int/lit8 p3, p3, 0x1
|
|
|
|
|
|
|
|
if-eqz p3, :cond_0
|
|
|
|
|
|
|
|
move-object v1, p1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
move-object v1, v0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
|
|
|
|
const/4 v3, 0x0
|
|
|
|
|
|
|
|
const/4 v4, 0x0
|
|
|
|
|
|
|
|
const/4 v5, 0x0
|
|
|
|
|
|
|
|
const/4 v6, 0x0
|
|
|
|
|
|
|
|
sget-object v7, Lcom/discord/views/OAuthPermissionViews$b;->d:Lcom/discord/views/OAuthPermissionViews$b;
|
|
|
|
|
|
|
|
const/16 v8, 0x1e
|
|
|
|
|
|
|
|
const-string v2, ", "
|
|
|
|
|
2020-03-26 23:31:08 +00:00
|
|
|
invoke-static/range {v1 .. v8}, Lw/q/l;->joinToString$default(Ljava/lang/Iterable;Ljava/lang/CharSequence;Ljava/lang/CharSequence;Ljava/lang/CharSequence;ILjava/lang/CharSequence;Lkotlin/jvm/functions/Function1;I)Ljava/lang/String;
|
2020-01-22 01:17:22 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
|
|
|
|
goto/16 :goto_2
|
|
|
|
|
|
|
|
:cond_1
|
2020-03-26 23:31:08 +00:00
|
|
|
const p1, 0x7f12116b
|
2020-01-22 01:17:22 +00:00
|
|
|
|
|
|
|
invoke-virtual {p2, p1}, Landroid/content/Context;->getString(I)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
goto/16 :goto_2
|
|
|
|
|
|
|
|
:sswitch_3
|
|
|
|
const-string p1, "rpc.api"
|
|
|
|
|
|
|
|
invoke-virtual {p3, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
if-eqz p1, :cond_4
|
|
|
|
|
2020-03-26 23:31:08 +00:00
|
|
|
const p1, 0x7f12117b
|
2020-01-22 01:17:22 +00:00
|
|
|
|
|
|
|
invoke-virtual {p2, p1}, Landroid/content/Context;->getString(I)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
goto/16 :goto_2
|
|
|
|
|
|
|
|
:sswitch_4
|
|
|
|
const-string p1, "applications.store.update"
|
|
|
|
|
|
|
|
invoke-virtual {p3, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
if-eqz p1, :cond_4
|
|
|
|
|
2020-03-26 23:31:08 +00:00
|
|
|
const p1, 0x7f121164
|
2020-01-22 01:17:22 +00:00
|
|
|
|
|
|
|
invoke-virtual {p2, p1}, Landroid/content/Context;->getString(I)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
goto/16 :goto_2
|
|
|
|
|
|
|
|
:sswitch_5
|
|
|
|
const-string p1, "gdm.join"
|
|
|
|
|
|
|
|
invoke-virtual {p3, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
if-eqz p1, :cond_4
|
|
|
|
|
2020-03-26 23:31:08 +00:00
|
|
|
const p1, 0x7f12116f
|
2020-01-22 01:17:22 +00:00
|
|
|
|
|
|
|
invoke-virtual {p2, p1}, Landroid/content/Context;->getString(I)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
goto/16 :goto_2
|
|
|
|
|
|
|
|
:sswitch_6
|
|
|
|
const-string p2, "email"
|
|
|
|
|
|
|
|
invoke-virtual {p3, p2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result p2
|
|
|
|
|
|
|
|
if-eqz p2, :cond_4
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lcom/discord/restapi/RestAPIParams$OAuth2Authorize$ResponseGet;->getUser()Lcom/discord/models/domain/ModelUser;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lcom/discord/models/domain/ModelUser;->getEmail()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
goto/16 :goto_2
|
|
|
|
|
|
|
|
:sswitch_7
|
|
|
|
const-string p1, "rpc"
|
|
|
|
|
|
|
|
invoke-virtual {p3, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
if-eqz p1, :cond_4
|
|
|
|
|
2020-03-26 23:31:08 +00:00
|
|
|
const p1, 0x7f12117c
|
2020-01-22 01:17:22 +00:00
|
|
|
|
|
|
|
invoke-virtual {p2, p1}, Landroid/content/Context;->getString(I)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
goto/16 :goto_2
|
|
|
|
|
|
|
|
:sswitch_8
|
|
|
|
const-string p1, "bot"
|
|
|
|
|
|
|
|
invoke-virtual {p3, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
if-eqz p1, :cond_4
|
|
|
|
|
2020-03-26 23:31:08 +00:00
|
|
|
const p1, 0x7f121166
|
2020-01-22 01:17:22 +00:00
|
|
|
|
|
|
|
invoke-virtual {p2, p1}, Landroid/content/Context;->getString(I)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
goto/16 :goto_2
|
|
|
|
|
|
|
|
:sswitch_9
|
|
|
|
const-string p2, "identify"
|
|
|
|
|
|
|
|
invoke-virtual {p3, p2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result p2
|
|
|
|
|
|
|
|
if-eqz p2, :cond_4
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lcom/discord/restapi/RestAPIParams$OAuth2Authorize$ResponseGet;->getUser()Lcom/discord/models/domain/ModelUser;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lcom/discord/models/domain/ModelUser;->getUserNameWithDiscriminator()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
goto/16 :goto_2
|
|
|
|
|
|
|
|
:sswitch_a
|
|
|
|
const-string p1, "activities.read"
|
|
|
|
|
|
|
|
invoke-virtual {p3, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
if-eqz p1, :cond_4
|
|
|
|
|
2020-03-26 23:31:08 +00:00
|
|
|
const p1, 0x7f12115a
|
2020-01-22 01:17:22 +00:00
|
|
|
|
|
|
|
invoke-virtual {p2, p1}, Landroid/content/Context;->getString(I)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
goto/16 :goto_2
|
|
|
|
|
|
|
|
:sswitch_b
|
|
|
|
const-string p1, "messages.read"
|
|
|
|
|
|
|
|
invoke-virtual {p3, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
if-eqz p1, :cond_4
|
|
|
|
|
2020-03-26 23:31:08 +00:00
|
|
|
const p1, 0x7f121176
|
2020-01-22 01:17:22 +00:00
|
|
|
|
|
|
|
invoke-virtual {p2, p1}, Landroid/content/Context;->getString(I)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
goto/16 :goto_2
|
|
|
|
|
|
|
|
:sswitch_c
|
|
|
|
const-string p1, "rpc.notifications.read"
|
|
|
|
|
|
|
|
invoke-virtual {p3, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
if-eqz p1, :cond_4
|
|
|
|
|
2020-03-26 23:31:08 +00:00
|
|
|
const p1, 0x7f12117e
|
2020-01-22 01:17:22 +00:00
|
|
|
|
|
|
|
invoke-virtual {p2, p1}, Landroid/content/Context;->getString(I)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
goto/16 :goto_2
|
|
|
|
|
|
|
|
:sswitch_d
|
|
|
|
const-string p1, "applications.entitlements"
|
|
|
|
|
|
|
|
invoke-virtual {p3, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
if-eqz p1, :cond_4
|
|
|
|
|
2020-03-26 23:31:08 +00:00
|
|
|
const p1, 0x7f121162
|
2020-01-22 01:17:22 +00:00
|
|
|
|
|
|
|
invoke-virtual {p2, p1}, Landroid/content/Context;->getString(I)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:sswitch_e
|
|
|
|
const-string v1, "guilds"
|
|
|
|
|
|
|
|
invoke-virtual {p3, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
if-eqz v1, :cond_4
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lcom/discord/restapi/RestAPIParams$OAuth2Authorize$ResponseGet;->getGuilds()Ljava/util/List;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
invoke-interface {p1}, Ljava/util/Collection;->isEmpty()Z
|
|
|
|
|
|
|
|
move-result p3
|
|
|
|
|
|
|
|
xor-int/lit8 p3, p3, 0x1
|
|
|
|
|
|
|
|
if-eqz p3, :cond_2
|
|
|
|
|
|
|
|
move-object v1, p1
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
move-object v1, v0
|
|
|
|
|
|
|
|
:goto_1
|
|
|
|
if-eqz v1, :cond_3
|
|
|
|
|
|
|
|
const/4 v3, 0x0
|
|
|
|
|
|
|
|
const/4 v4, 0x0
|
|
|
|
|
|
|
|
const/4 v5, 0x0
|
|
|
|
|
|
|
|
const/4 v6, 0x0
|
|
|
|
|
|
|
|
sget-object v7, Lcom/discord/views/OAuthPermissionViews$c;->d:Lcom/discord/views/OAuthPermissionViews$c;
|
|
|
|
|
|
|
|
const/16 v8, 0x1e
|
|
|
|
|
|
|
|
const-string v2, ", "
|
|
|
|
|
2020-03-26 23:31:08 +00:00
|
|
|
invoke-static/range {v1 .. v8}, Lw/q/l;->joinToString$default(Ljava/lang/Iterable;Ljava/lang/CharSequence;Ljava/lang/CharSequence;Ljava/lang/CharSequence;ILjava/lang/CharSequence;Lkotlin/jvm/functions/Function1;I)Ljava/lang/String;
|
2020-01-22 01:17:22 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
if-eqz p1, :cond_3
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_3
|
2020-03-26 23:31:08 +00:00
|
|
|
const p1, 0x7f121171
|
2020-01-22 01:17:22 +00:00
|
|
|
|
|
|
|
invoke-virtual {p2, p1}, Landroid/content/Context;->getString(I)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:sswitch_f
|
|
|
|
const-string p1, "guilds.join"
|
|
|
|
|
|
|
|
invoke-virtual {p3, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
if-eqz p1, :cond_4
|
|
|
|
|
2020-03-26 23:31:08 +00:00
|
|
|
const p1, 0x7f121173
|
2020-01-22 01:17:22 +00:00
|
|
|
|
|
|
|
invoke-virtual {p2, p1}, Landroid/content/Context;->getString(I)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:sswitch_10
|
|
|
|
const-string p1, "activities.write"
|
|
|
|
|
|
|
|
invoke-virtual {p3, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
if-eqz p1, :cond_4
|
|
|
|
|
2020-03-26 23:31:08 +00:00
|
|
|
const p1, 0x7f12115c
|
2020-01-22 01:17:22 +00:00
|
|
|
|
|
|
|
invoke-virtual {p2, p1}, Landroid/content/Context;->getString(I)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:sswitch_11
|
|
|
|
const-string p1, "relationships.read"
|
|
|
|
|
|
|
|
invoke-virtual {p3, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
if-eqz p1, :cond_4
|
|
|
|
|
2020-03-26 23:31:08 +00:00
|
|
|
const p1, 0x7f121178
|
2020-01-22 01:17:22 +00:00
|
|
|
|
|
|
|
invoke-virtual {p2, p1}, Landroid/content/Context;->getString(I)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
:goto_2
|
|
|
|
return-object p1
|
|
|
|
|
|
|
|
:cond_4
|
|
|
|
:goto_3
|
|
|
|
new-instance p1, Lcom/discord/views/OAuthPermissionViews$InvalidScopeException;
|
|
|
|
|
|
|
|
invoke-direct {p1, p3}, Lcom/discord/views/OAuthPermissionViews$InvalidScopeException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
|
|
|
|
:cond_5
|
|
|
|
const-string p1, "scope"
|
|
|
|
|
2020-03-26 23:31:08 +00:00
|
|
|
invoke-static {p1}, Lw/u/b/j;->a(Ljava/lang/String;)V
|
2020-01-22 01:17:22 +00:00
|
|
|
|
|
|
|
throw v0
|
|
|
|
|
|
|
|
:cond_6
|
|
|
|
const-string p1, "context"
|
|
|
|
|
2020-03-26 23:31:08 +00:00
|
|
|
invoke-static {p1}, Lw/u/b/j;->a(Ljava/lang/String;)V
|
2020-01-22 01:17:22 +00:00
|
|
|
|
|
|
|
throw v0
|
|
|
|
|
|
|
|
:cond_7
|
|
|
|
const-string p1, "$this$getPermissionDetails"
|
|
|
|
|
2020-03-26 23:31:08 +00:00
|
|
|
invoke-static {p1}, Lw/u/b/j;->a(Ljava/lang/String;)V
|
2020-01-22 01:17:22 +00:00
|
|
|
|
|
|
|
throw v0
|
|
|
|
|
|
|
|
:sswitch_data_0
|
|
|
|
.sparse-switch
|
|
|
|
-0x71f43197 -> :sswitch_11
|
|
|
|
-0x6816e562 -> :sswitch_10
|
|
|
|
-0x5e746088 -> :sswitch_f
|
|
|
|
-0x499abd20 -> :sswitch_e
|
|
|
|
-0x4824902f -> :sswitch_d
|
|
|
|
-0x478c367b -> :sswitch_c
|
|
|
|
-0x2a0e7f08 -> :sswitch_b
|
|
|
|
-0x1c243d09 -> :sswitch_a
|
|
|
|
-0x81790f4 -> :sswitch_9
|
|
|
|
0x17dc7 -> :sswitch_8
|
|
|
|
0x1b9e5 -> :sswitch_7
|
|
|
|
0x5c24b9c -> :sswitch_6
|
|
|
|
0x32428528 -> :sswitch_5
|
|
|
|
0x476a8d61 -> :sswitch_4
|
|
|
|
0x532ea291 -> :sswitch_3
|
|
|
|
0x66cb5d55 -> :sswitch_2
|
|
|
|
0x6898fabf -> :sswitch_1
|
|
|
|
0x77fa5dd4 -> :sswitch_0
|
|
|
|
.end sparse-switch
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final a(Landroid/widget/TextView;Ljava/lang/String;)V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
if-eqz p1, :cond_2
|
|
|
|
|
|
|
|
if-eqz p2, :cond_1
|
|
|
|
|
|
|
|
invoke-virtual {p2}, Ljava/lang/String;->hashCode()I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
sparse-switch v0, :sswitch_data_0
|
|
|
|
|
|
|
|
goto/16 :goto_1
|
|
|
|
|
|
|
|
:sswitch_0
|
|
|
|
const-string v0, "applications.builds.read"
|
|
|
|
|
|
|
|
invoke-virtual {p2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
2020-03-26 23:31:08 +00:00
|
|
|
const p2, 0x7f12115d
|
2020-01-22 01:17:22 +00:00
|
|
|
|
|
|
|
goto/16 :goto_0
|
|
|
|
|
|
|
|
:sswitch_1
|
|
|
|
const-string v0, "applications.builds.upload"
|
|
|
|
|
|
|
|
invoke-virtual {p2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
2020-03-26 23:31:08 +00:00
|
|
|
const p2, 0x7f12115f
|
2020-01-22 01:17:22 +00:00
|
|
|
|
|
|
|
goto/16 :goto_0
|
|
|
|
|
|
|
|
:sswitch_2
|
|
|
|
const-string v0, "connections"
|
|
|
|
|
|
|
|
invoke-virtual {p2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
2020-03-26 23:31:08 +00:00
|
|
|
const p2, 0x7f12116a
|
2020-01-22 01:17:22 +00:00
|
|
|
|
|
|
|
goto/16 :goto_0
|
|
|
|
|
|
|
|
:sswitch_3
|
|
|
|
const-string v0, "rpc.api"
|
|
|
|
|
|
|
|
invoke-virtual {p2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
2020-03-26 23:31:08 +00:00
|
|
|
const p2, 0x7f12117a
|
2020-01-22 01:17:22 +00:00
|
|
|
|
|
|
|
goto/16 :goto_0
|
|
|
|
|
|
|
|
:sswitch_4
|
|
|
|
const-string v0, "applications.store.update"
|
|
|
|
|
|
|
|
invoke-virtual {p2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
2020-03-26 23:31:08 +00:00
|
|
|
const p2, 0x7f121163
|
2020-01-22 01:17:22 +00:00
|
|
|
|
|
|
|
goto/16 :goto_0
|
|
|
|
|
|
|
|
:sswitch_5
|
|
|
|
const-string v0, "gdm.join"
|
|
|
|
|
|
|
|
invoke-virtual {p2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
2020-03-26 23:31:08 +00:00
|
|
|
const p2, 0x7f12116e
|
2020-01-22 01:17:22 +00:00
|
|
|
|
|
|
|
goto/16 :goto_0
|
|
|
|
|
|
|
|
:sswitch_6
|
|
|
|
const-string v0, "email"
|
|
|
|
|
|
|
|
invoke-virtual {p2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
2020-03-26 23:31:08 +00:00
|
|
|
const p2, 0x7f12116c
|
2020-01-22 01:17:22 +00:00
|
|
|
|
|
|
|
goto/16 :goto_0
|
|
|
|
|
|
|
|
:sswitch_7
|
|
|
|
const-string v0, "rpc"
|
|
|
|
|
|
|
|
invoke-virtual {p2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
2020-03-26 23:31:08 +00:00
|
|
|
const p2, 0x7f121179
|
2020-01-22 01:17:22 +00:00
|
|
|
|
|
|
|
goto/16 :goto_0
|
|
|
|
|
|
|
|
:sswitch_8
|
|
|
|
const-string v0, "bot"
|
|
|
|
|
|
|
|
invoke-virtual {p2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
2020-03-26 23:31:08 +00:00
|
|
|
const p2, 0x7f121165
|
2020-01-22 01:17:22 +00:00
|
|
|
|
|
|
|
goto/16 :goto_0
|
|
|
|
|
|
|
|
:sswitch_9
|
|
|
|
const-string v0, "identify"
|
|
|
|
|
|
|
|
invoke-virtual {p2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
2020-03-26 23:31:08 +00:00
|
|
|
const p2, 0x7f121174
|
2020-01-22 01:17:22 +00:00
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:sswitch_a
|
|
|
|
const-string v0, "activities.read"
|
|
|
|
|
|
|
|
invoke-virtual {p2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
2020-03-26 23:31:08 +00:00
|
|
|
const p2, 0x7f121159
|
2020-01-22 01:17:22 +00:00
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:sswitch_b
|
|
|
|
const-string v0, "messages.read"
|
|
|
|
|
|
|
|
invoke-virtual {p2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
2020-03-26 23:31:08 +00:00
|
|
|
const p2, 0x7f121175
|
2020-01-22 01:17:22 +00:00
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:sswitch_c
|
|
|
|
const-string v0, "rpc.notifications.read"
|
|
|
|
|
|
|
|
invoke-virtual {p2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
2020-03-26 23:31:08 +00:00
|
|
|
const p2, 0x7f12117d
|
2020-01-22 01:17:22 +00:00
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:sswitch_d
|
|
|
|
const-string v0, "applications.entitlements"
|
|
|
|
|
|
|
|
invoke-virtual {p2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
2020-03-26 23:31:08 +00:00
|
|
|
const p2, 0x7f121161
|
2020-01-22 01:17:22 +00:00
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:sswitch_e
|
|
|
|
const-string v0, "guilds"
|
|
|
|
|
|
|
|
invoke-virtual {p2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
2020-03-26 23:31:08 +00:00
|
|
|
const p2, 0x7f121170
|
2020-01-22 01:17:22 +00:00
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:sswitch_f
|
|
|
|
const-string v0, "guilds.join"
|
|
|
|
|
|
|
|
invoke-virtual {p2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
2020-03-26 23:31:08 +00:00
|
|
|
const p2, 0x7f121172
|
2020-01-22 01:17:22 +00:00
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:sswitch_10
|
|
|
|
const-string v0, "activities.write"
|
|
|
|
|
|
|
|
invoke-virtual {p2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
2020-03-26 23:31:08 +00:00
|
|
|
const p2, 0x7f12115b
|
2020-01-22 01:17:22 +00:00
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:sswitch_11
|
|
|
|
const-string v0, "relationships.read"
|
|
|
|
|
|
|
|
invoke-virtual {p2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
2020-03-26 23:31:08 +00:00
|
|
|
const p2, 0x7f121177
|
2020-01-22 01:17:22 +00:00
|
|
|
|
|
|
|
:goto_0
|
|
|
|
invoke-virtual {p1, p2}, Landroid/widget/TextView;->setText(I)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
:goto_1
|
|
|
|
new-instance p1, Lcom/discord/views/OAuthPermissionViews$InvalidScopeException;
|
|
|
|
|
|
|
|
invoke-direct {p1, p2}, Lcom/discord/views/OAuthPermissionViews$InvalidScopeException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
const-string p1, "scope"
|
|
|
|
|
2020-03-26 23:31:08 +00:00
|
|
|
invoke-static {p1}, Lw/u/b/j;->a(Ljava/lang/String;)V
|
2020-01-22 01:17:22 +00:00
|
|
|
|
|
|
|
throw v0
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
const-string p1, "$this$setScopePermissionText"
|
|
|
|
|
2020-03-26 23:31:08 +00:00
|
|
|
invoke-static {p1}, Lw/u/b/j;->a(Ljava/lang/String;)V
|
2020-01-22 01:17:22 +00:00
|
|
|
|
|
|
|
throw v0
|
|
|
|
|
|
|
|
:sswitch_data_0
|
|
|
|
.sparse-switch
|
|
|
|
-0x71f43197 -> :sswitch_11
|
|
|
|
-0x6816e562 -> :sswitch_10
|
|
|
|
-0x5e746088 -> :sswitch_f
|
|
|
|
-0x499abd20 -> :sswitch_e
|
|
|
|
-0x4824902f -> :sswitch_d
|
|
|
|
-0x478c367b -> :sswitch_c
|
|
|
|
-0x2a0e7f08 -> :sswitch_b
|
|
|
|
-0x1c243d09 -> :sswitch_a
|
|
|
|
-0x81790f4 -> :sswitch_9
|
|
|
|
0x17dc7 -> :sswitch_8
|
|
|
|
0x1b9e5 -> :sswitch_7
|
|
|
|
0x5c24b9c -> :sswitch_6
|
|
|
|
0x32428528 -> :sswitch_5
|
|
|
|
0x476a8d61 -> :sswitch_4
|
|
|
|
0x532ea291 -> :sswitch_3
|
|
|
|
0x66cb5d55 -> :sswitch_2
|
|
|
|
0x6898fabf -> :sswitch_1
|
|
|
|
0x77fa5dd4 -> :sswitch_0
|
|
|
|
.end sparse-switch
|
|
|
|
.end method
|