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(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-04-10 14:32:51 +00:00
|
|
|
const p2, 0x7f1211f2
|
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-04-10 14:32:51 +00:00
|
|
|
const p2, 0x7f1211f4
|
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-04-10 14:32:51 +00:00
|
|
|
const p2, 0x7f1211ff
|
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-04-10 14:32:51 +00:00
|
|
|
const p2, 0x7f12120f
|
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-04-10 14:32:51 +00:00
|
|
|
const p2, 0x7f1211f8
|
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-04-10 14:32:51 +00:00
|
|
|
const p2, 0x7f121203
|
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-04-10 14:32:51 +00:00
|
|
|
const p2, 0x7f121201
|
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-04-10 14:32:51 +00:00
|
|
|
const p2, 0x7f12120e
|
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-04-10 14:32:51 +00:00
|
|
|
const p2, 0x7f1211fa
|
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-04-10 14:32:51 +00:00
|
|
|
const p2, 0x7f121209
|
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-04-10 14:32:51 +00:00
|
|
|
const p2, 0x7f1211ee
|
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-04-10 14:32:51 +00:00
|
|
|
const p2, 0x7f12120a
|
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-04-10 14:32:51 +00:00
|
|
|
const p2, 0x7f121212
|
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-04-10 14:32:51 +00:00
|
|
|
const p2, 0x7f1211f6
|
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-04-10 14:32:51 +00:00
|
|
|
const p2, 0x7f121205
|
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-04-10 14:32:51 +00:00
|
|
|
const p2, 0x7f121207
|
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-04-10 14:32:51 +00:00
|
|
|
const p2, 0x7f1211f0
|
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-04-10 14:32:51 +00:00
|
|
|
const p2, 0x7f12120c
|
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-27 22:23:51 +00:00
|
|
|
invoke-static {p1}, Ly/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-27 22:23:51 +00:00
|
|
|
invoke-static {p1}, Ly/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
|