778 lines
17 KiB
Smali
778 lines
17 KiB
Smali
|
.class public Lcom/discord/utilities/error/Error$Response;
|
||
|
.super Ljava/lang/Object;
|
||
|
.source "Error.java"
|
||
|
|
||
|
# interfaces
|
||
|
.implements Lcom/discord/models/domain/Model;
|
||
|
|
||
|
|
||
|
# annotations
|
||
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
||
|
value = Lcom/discord/utilities/error/Error;
|
||
|
.end annotation
|
||
|
|
||
|
.annotation system Ldalvik/annotation/InnerClass;
|
||
|
accessFlags = 0x9
|
||
|
name = "Response"
|
||
|
.end annotation
|
||
|
|
||
|
|
||
|
# instance fields
|
||
|
.field private code:I
|
||
|
|
||
|
.field private global:Z
|
||
|
|
||
|
.field private message:Ljava/lang/String;
|
||
|
.annotation build Landroidx/annotation/Nullable;
|
||
|
.end annotation
|
||
|
.end field
|
||
|
|
||
|
.field private messages:Ljava/util/Map;
|
||
|
.annotation build Landroidx/annotation/NonNull;
|
||
|
.end annotation
|
||
|
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"Ljava/util/Map<",
|
||
|
"Ljava/lang/String;",
|
||
|
"Ljava/util/List<",
|
||
|
"Ljava/lang/String;",
|
||
|
">;>;"
|
||
|
}
|
||
|
.end annotation
|
||
|
.end field
|
||
|
|
||
|
.field private retryAfter:I
|
||
|
|
||
|
|
||
|
# direct methods
|
||
|
.method private constructor <init>(Ljava/lang/String;)V
|
||
|
.locals 2
|
||
|
.param p1 # Ljava/lang/String;
|
||
|
.annotation build Landroidx/annotation/Nullable;
|
||
|
.end annotation
|
||
|
.end param
|
||
|
|
||
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||
|
|
||
|
new-instance v0, Ljava/util/HashMap;
|
||
|
|
||
|
invoke-direct {v0}, Ljava/util/HashMap;-><init>()V
|
||
|
|
||
|
iput-object v0, p0, Lcom/discord/utilities/error/Error$Response;->messages:Ljava/util/Map;
|
||
|
|
||
|
if-eqz p1, :cond_0
|
||
|
|
||
|
:try_start_0
|
||
|
new-instance v0, Lcom/discord/models/domain/Model$JsonReader;
|
||
|
|
||
|
new-instance v1, Ljava/io/StringReader;
|
||
|
|
||
|
invoke-direct {v1, p1}, Ljava/io/StringReader;-><init>(Ljava/lang/String;)V
|
||
|
|
||
|
invoke-direct {v0, v1}, Lcom/discord/models/domain/Model$JsonReader;-><init>(Ljava/io/Reader;)V
|
||
|
|
||
|
invoke-virtual {v0, p0}, Lcom/discord/models/domain/Model$JsonReader;->parse(Lcom/discord/models/domain/Model;)Lcom/discord/models/domain/Model;
|
||
|
:try_end_0
|
||
|
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
|
||
|
|
||
|
nop
|
||
|
|
||
|
:catch_0
|
||
|
:cond_0
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method synthetic constructor <init>(Ljava/lang/String;Lcom/discord/utilities/error/Error$1;)V
|
||
|
.locals 0
|
||
|
|
||
|
invoke-direct {p0, p1}, Lcom/discord/utilities/error/Error$Response;-><init>(Ljava/lang/String;)V
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method static synthetic access$100(Lcom/discord/utilities/error/Error$Response;Landroid/content/Context;I)Ljava/lang/String;
|
||
|
.locals 0
|
||
|
|
||
|
invoke-direct {p0, p1, p2}, Lcom/discord/utilities/error/Error$Response;->getMessageToast(Landroid/content/Context;I)Ljava/lang/String;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method private getMessageToast(Landroid/content/Context;I)Ljava/lang/String;
|
||
|
.locals 3
|
||
|
.param p2 # I
|
||
|
.annotation build Landroidx/annotation/StringRes;
|
||
|
.end annotation
|
||
|
.end param
|
||
|
.annotation build Landroid/annotation/SuppressLint;
|
||
|
value = {
|
||
|
"ResourceType"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
invoke-virtual {p0, p1}, Lcom/discord/utilities/error/Error$Response;->getMessageForErrorCode(Landroid/content/Context;)Ljava/lang/String;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
if-eqz v0, :cond_0
|
||
|
|
||
|
return-object v0
|
||
|
|
||
|
:cond_0
|
||
|
iget-object v0, p0, Lcom/discord/utilities/error/Error$Response;->message:Ljava/lang/String;
|
||
|
|
||
|
if-eqz v0, :cond_1
|
||
|
|
||
|
return-object v0
|
||
|
|
||
|
:cond_1
|
||
|
iget-object v0, p0, Lcom/discord/utilities/error/Error$Response;->messages:Ljava/util/Map;
|
||
|
|
||
|
invoke-interface {v0}, Ljava/util/Map;->values()Ljava/util/Collection;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-interface {v0}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
:cond_2
|
||
|
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
if-eqz v1, :cond_4
|
||
|
|
||
|
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
check-cast v1, Ljava/util/List;
|
||
|
|
||
|
invoke-interface {v1}, Ljava/util/List;->iterator()Ljava/util/Iterator;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
:cond_3
|
||
|
invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z
|
||
|
|
||
|
move-result v2
|
||
|
|
||
|
if-eqz v2, :cond_2
|
||
|
|
||
|
invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
check-cast v2, Ljava/lang/String;
|
||
|
|
||
|
if-eqz v2, :cond_3
|
||
|
|
||
|
return-object v2
|
||
|
|
||
|
:cond_4
|
||
|
invoke-virtual {p1, p2}, Landroid/content/Context;->getString(I)Ljava/lang/String;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
return-object p1
|
||
|
.end method
|
||
|
|
||
|
.method static synthetic lambda$assignField$0(Lcom/discord/models/domain/Model$JsonReader;)Ljava/lang/String;
|
||
|
.locals 1
|
||
|
.annotation system Ldalvik/annotation/Throws;
|
||
|
value = {
|
||
|
Ljava/io/IOException;
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
const/4 v0, 0x0
|
||
|
|
||
|
invoke-virtual {p0, v0}, Lcom/discord/models/domain/Model$JsonReader;->nextString(Ljava/lang/String;)Ljava/lang/String;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
|
||
|
# virtual methods
|
||
|
.method public assignField(Lcom/discord/models/domain/Model$JsonReader;)V
|
||
|
.locals 5
|
||
|
.annotation system Ldalvik/annotation/Throws;
|
||
|
value = {
|
||
|
Ljava/io/IOException;
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
invoke-virtual {p1}, Lcom/discord/models/domain/Model$JsonReader;->nextName()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-virtual {v0}, Ljava/lang/String;->hashCode()I
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
const/4 v2, 0x3
|
||
|
|
||
|
const/4 v3, 0x2
|
||
|
|
||
|
const/4 v4, 0x1
|
||
|
|
||
|
sparse-switch v1, :sswitch_data_0
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:sswitch_0
|
||
|
const-string v1, "message"
|
||
|
|
||
|
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
if-eqz v1, :cond_0
|
||
|
|
||
|
const/4 v1, 0x1
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
:sswitch_1
|
||
|
const-string v1, "code"
|
||
|
|
||
|
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
if-eqz v1, :cond_0
|
||
|
|
||
|
const/4 v1, 0x0
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
:sswitch_2
|
||
|
const-string v1, "retry_after"
|
||
|
|
||
|
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
if-eqz v1, :cond_0
|
||
|
|
||
|
const/4 v1, 0x2
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
:sswitch_3
|
||
|
const-string v1, "global"
|
||
|
|
||
|
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
if-eqz v1, :cond_0
|
||
|
|
||
|
const/4 v1, 0x3
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
:cond_0
|
||
|
:goto_0
|
||
|
const/4 v1, -0x1
|
||
|
|
||
|
:goto_1
|
||
|
if-eqz v1, :cond_4
|
||
|
|
||
|
if-eq v1, v4, :cond_3
|
||
|
|
||
|
if-eq v1, v3, :cond_2
|
||
|
|
||
|
if-eq v1, v2, :cond_1
|
||
|
|
||
|
iget-object v1, p0, Lcom/discord/utilities/error/Error$Response;->messages:Ljava/util/Map;
|
||
|
|
||
|
new-instance v2, Lcom/discord/utilities/error/-$$Lambda$Error$Response$2AnXrjV7OJsoC7BUfi8VCaQJSCc;
|
||
|
|
||
|
invoke-direct {v2, p1}, Lcom/discord/utilities/error/-$$Lambda$Error$Response$2AnXrjV7OJsoC7BUfi8VCaQJSCc;-><init>(Lcom/discord/models/domain/Model$JsonReader;)V
|
||
|
|
||
|
invoke-virtual {p1, v2}, Lcom/discord/models/domain/Model$JsonReader;->nextList(Lcom/discord/models/domain/Model$JsonReader$ItemFactory;)Ljava/util/List;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
invoke-interface {v1, v0, p1}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
||
|
|
||
|
return-void
|
||
|
|
||
|
:cond_1
|
||
|
iget-boolean v0, p0, Lcom/discord/utilities/error/Error$Response;->global:Z
|
||
|
|
||
|
invoke-virtual {p1, v0}, Lcom/discord/models/domain/Model$JsonReader;->nextBoolean(Z)Z
|
||
|
|
||
|
move-result p1
|
||
|
|
||
|
iput-boolean p1, p0, Lcom/discord/utilities/error/Error$Response;->global:Z
|
||
|
|
||
|
return-void
|
||
|
|
||
|
:cond_2
|
||
|
iget v0, p0, Lcom/discord/utilities/error/Error$Response;->retryAfter:I
|
||
|
|
||
|
invoke-virtual {p1, v0}, Lcom/discord/models/domain/Model$JsonReader;->nextInt(I)I
|
||
|
|
||
|
move-result p1
|
||
|
|
||
|
iput p1, p0, Lcom/discord/utilities/error/Error$Response;->retryAfter:I
|
||
|
|
||
|
return-void
|
||
|
|
||
|
:cond_3
|
||
|
iget-object v0, p0, Lcom/discord/utilities/error/Error$Response;->message:Ljava/lang/String;
|
||
|
|
||
|
invoke-virtual {p1, v0}, Lcom/discord/models/domain/Model$JsonReader;->nextString(Ljava/lang/String;)Ljava/lang/String;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
iput-object p1, p0, Lcom/discord/utilities/error/Error$Response;->message:Ljava/lang/String;
|
||
|
|
||
|
return-void
|
||
|
|
||
|
:cond_4
|
||
|
iget v0, p0, Lcom/discord/utilities/error/Error$Response;->code:I
|
||
|
|
||
|
invoke-virtual {p1, v0}, Lcom/discord/models/domain/Model$JsonReader;->nextInt(I)I
|
||
|
|
||
|
move-result p1
|
||
|
|
||
|
iput p1, p0, Lcom/discord/utilities/error/Error$Response;->code:I
|
||
|
|
||
|
return-void
|
||
|
|
||
|
nop
|
||
|
|
||
|
:sswitch_data_0
|
||
|
.sparse-switch
|
||
|
-0x4a16fc5d -> :sswitch_3
|
||
|
-0x3771127b -> :sswitch_2
|
||
|
0x2eaded -> :sswitch_1
|
||
|
0x38eb0007 -> :sswitch_0
|
||
|
.end sparse-switch
|
||
|
.end method
|
||
|
|
||
|
.method protected canEqual(Ljava/lang/Object;)Z
|
||
|
.locals 0
|
||
|
|
||
|
instance-of p1, p1, Lcom/discord/utilities/error/Error$Response;
|
||
|
|
||
|
return p1
|
||
|
.end method
|
||
|
|
||
|
.method public equals(Ljava/lang/Object;)Z
|
||
|
.locals 4
|
||
|
|
||
|
const/4 v0, 0x1
|
||
|
|
||
|
if-ne p1, p0, :cond_0
|
||
|
|
||
|
return v0
|
||
|
|
||
|
:cond_0
|
||
|
instance-of v1, p1, Lcom/discord/utilities/error/Error$Response;
|
||
|
|
||
|
const/4 v2, 0x0
|
||
|
|
||
|
if-nez v1, :cond_1
|
||
|
|
||
|
return v2
|
||
|
|
||
|
:cond_1
|
||
|
check-cast p1, Lcom/discord/utilities/error/Error$Response;
|
||
|
|
||
|
invoke-virtual {p1, p0}, Lcom/discord/utilities/error/Error$Response;->canEqual(Ljava/lang/Object;)Z
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
if-nez v1, :cond_2
|
||
|
|
||
|
return v2
|
||
|
|
||
|
:cond_2
|
||
|
invoke-virtual {p0}, Lcom/discord/utilities/error/Error$Response;->getCode()I
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
invoke-virtual {p1}, Lcom/discord/utilities/error/Error$Response;->getCode()I
|
||
|
|
||
|
move-result v3
|
||
|
|
||
|
if-eq v1, v3, :cond_3
|
||
|
|
||
|
return v2
|
||
|
|
||
|
:cond_3
|
||
|
invoke-virtual {p0}, Lcom/discord/utilities/error/Error$Response;->getRetryAfter()Ljava/lang/Integer;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-virtual {p1}, Lcom/discord/utilities/error/Error$Response;->getRetryAfter()Ljava/lang/Integer;
|
||
|
|
||
|
move-result-object v3
|
||
|
|
||
|
if-nez v1, :cond_4
|
||
|
|
||
|
if-eqz v3, :cond_5
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_4
|
||
|
invoke-virtual {v1, v3}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
if-nez v1, :cond_5
|
||
|
|
||
|
:goto_0
|
||
|
return v2
|
||
|
|
||
|
:cond_5
|
||
|
iget-boolean v1, p0, Lcom/discord/utilities/error/Error$Response;->global:Z
|
||
|
|
||
|
iget-boolean v3, p1, Lcom/discord/utilities/error/Error$Response;->global:Z
|
||
|
|
||
|
if-eq v1, v3, :cond_6
|
||
|
|
||
|
return v2
|
||
|
|
||
|
:cond_6
|
||
|
invoke-virtual {p0}, Lcom/discord/utilities/error/Error$Response;->getMessages()Ljava/util/Map;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-virtual {p1}, Lcom/discord/utilities/error/Error$Response;->getMessages()Ljava/util/Map;
|
||
|
|
||
|
move-result-object v3
|
||
|
|
||
|
if-nez v1, :cond_7
|
||
|
|
||
|
if-eqz v3, :cond_8
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
:cond_7
|
||
|
invoke-virtual {v1, v3}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
if-nez v1, :cond_8
|
||
|
|
||
|
:goto_1
|
||
|
return v2
|
||
|
|
||
|
:cond_8
|
||
|
invoke-virtual {p0}, Lcom/discord/utilities/error/Error$Response;->getMessage()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-virtual {p1}, Lcom/discord/utilities/error/Error$Response;->getMessage()Ljava/lang/String;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
if-nez v1, :cond_9
|
||
|
|
||
|
if-eqz p1, :cond_a
|
||
|
|
||
|
goto :goto_2
|
||
|
|
||
|
:cond_9
|
||
|
invoke-virtual {v1, p1}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z
|
||
|
|
||
|
move-result p1
|
||
|
|
||
|
if-nez p1, :cond_a
|
||
|
|
||
|
:goto_2
|
||
|
return v2
|
||
|
|
||
|
:cond_a
|
||
|
return v0
|
||
|
.end method
|
||
|
|
||
|
.method public getCode()I
|
||
|
.locals 1
|
||
|
|
||
|
iget v0, p0, Lcom/discord/utilities/error/Error$Response;->code:I
|
||
|
|
||
|
return v0
|
||
|
.end method
|
||
|
|
||
|
.method public getMessage()Ljava/lang/String;
|
||
|
.locals 1
|
||
|
.annotation build Landroidx/annotation/Nullable;
|
||
|
.end annotation
|
||
|
|
||
|
iget-object v0, p0, Lcom/discord/utilities/error/Error$Response;->message:Ljava/lang/String;
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method public getMessageForErrorCode(Landroid/content/Context;)Ljava/lang/String;
|
||
|
.locals 2
|
||
|
|
||
|
invoke-static {}, Lcom/discord/utilities/error/Error;->access$200()Ljava/util/Map;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
iget v1, p0, Lcom/discord/utilities/error/Error$Response;->code:I
|
||
|
|
||
|
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-interface {v0, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
check-cast v0, Ljava/lang/Integer;
|
||
|
|
||
|
if-eqz v0, :cond_0
|
||
|
|
||
|
invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
invoke-virtual {p1, v0}, Landroid/content/Context;->getString(I)Ljava/lang/String;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
return-object p1
|
||
|
|
||
|
:cond_0
|
||
|
const/4 p1, 0x0
|
||
|
|
||
|
return-object p1
|
||
|
.end method
|
||
|
|
||
|
.method public getMessages()Ljava/util/Map;
|
||
|
.locals 1
|
||
|
.annotation build Landroidx/annotation/NonNull;
|
||
|
.end annotation
|
||
|
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"()",
|
||
|
"Ljava/util/Map<",
|
||
|
"Ljava/lang/String;",
|
||
|
"Ljava/util/List<",
|
||
|
"Ljava/lang/String;",
|
||
|
">;>;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
iget-object v0, p0, Lcom/discord/utilities/error/Error$Response;->messages:Ljava/util/Map;
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method public getRetryAfter()Ljava/lang/Integer;
|
||
|
.locals 1
|
||
|
.annotation build Landroidx/annotation/Nullable;
|
||
|
.end annotation
|
||
|
|
||
|
iget v0, p0, Lcom/discord/utilities/error/Error$Response;->retryAfter:I
|
||
|
|
||
|
if-lez v0, :cond_0
|
||
|
|
||
|
invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
return-object v0
|
||
|
|
||
|
:cond_0
|
||
|
const/4 v0, 0x0
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method public hashCode()I
|
||
|
.locals 3
|
||
|
|
||
|
invoke-virtual {p0}, Lcom/discord/utilities/error/Error$Response;->getCode()I
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
add-int/lit8 v0, v0, 0x3b
|
||
|
|
||
|
invoke-virtual {p0}, Lcom/discord/utilities/error/Error$Response;->getRetryAfter()Ljava/lang/Integer;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
mul-int/lit8 v0, v0, 0x3b
|
||
|
|
||
|
const/16 v2, 0x2b
|
||
|
|
||
|
if-nez v1, :cond_0
|
||
|
|
||
|
const/16 v1, 0x2b
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_0
|
||
|
invoke-virtual {v1}, Ljava/lang/Object;->hashCode()I
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
:goto_0
|
||
|
add-int/2addr v0, v1
|
||
|
|
||
|
mul-int/lit8 v0, v0, 0x3b
|
||
|
|
||
|
iget-boolean v1, p0, Lcom/discord/utilities/error/Error$Response;->global:Z
|
||
|
|
||
|
if-eqz v1, :cond_1
|
||
|
|
||
|
const/16 v1, 0x4f
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
:cond_1
|
||
|
const/16 v1, 0x61
|
||
|
|
||
|
:goto_1
|
||
|
add-int/2addr v0, v1
|
||
|
|
||
|
invoke-virtual {p0}, Lcom/discord/utilities/error/Error$Response;->getMessages()Ljava/util/Map;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
mul-int/lit8 v0, v0, 0x3b
|
||
|
|
||
|
if-nez v1, :cond_2
|
||
|
|
||
|
const/16 v1, 0x2b
|
||
|
|
||
|
goto :goto_2
|
||
|
|
||
|
:cond_2
|
||
|
invoke-virtual {v1}, Ljava/lang/Object;->hashCode()I
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
:goto_2
|
||
|
add-int/2addr v0, v1
|
||
|
|
||
|
invoke-virtual {p0}, Lcom/discord/utilities/error/Error$Response;->getMessage()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
mul-int/lit8 v0, v0, 0x3b
|
||
|
|
||
|
if-nez v1, :cond_3
|
||
|
|
||
|
goto :goto_3
|
||
|
|
||
|
:cond_3
|
||
|
invoke-virtual {v1}, Ljava/lang/Object;->hashCode()I
|
||
|
|
||
|
move-result v2
|
||
|
|
||
|
:goto_3
|
||
|
add-int/2addr v0, v2
|
||
|
|
||
|
return v0
|
||
|
.end method
|
||
|
|
||
|
.method public isKnownResponse()Z
|
||
|
.locals 1
|
||
|
|
||
|
iget v0, p0, Lcom/discord/utilities/error/Error$Response;->code:I
|
||
|
|
||
|
if-gtz v0, :cond_1
|
||
|
|
||
|
iget-object v0, p0, Lcom/discord/utilities/error/Error$Response;->messages:Ljava/util/Map;
|
||
|
|
||
|
invoke-interface {v0}, Ljava/util/Map;->isEmpty()Z
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
if-nez v0, :cond_0
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_0
|
||
|
const/4 v0, 0x0
|
||
|
|
||
|
return v0
|
||
|
|
||
|
:cond_1
|
||
|
:goto_0
|
||
|
const/4 v0, 0x1
|
||
|
|
||
|
return v0
|
||
|
.end method
|
||
|
|
||
|
.method public toString()Ljava/lang/String;
|
||
|
.locals 2
|
||
|
|
||
|
new-instance v0, Ljava/lang/StringBuilder;
|
||
|
|
||
|
const-string v1, "Error.Response(code="
|
||
|
|
||
|
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
||
|
|
||
|
invoke-virtual {p0}, Lcom/discord/utilities/error/Error$Response;->getCode()I
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
||
|
|
||
|
const-string v1, ", retryAfter="
|
||
|
|
||
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
invoke-virtual {p0}, Lcom/discord/utilities/error/Error$Response;->getRetryAfter()Ljava/lang/Integer;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
const-string v1, ", global="
|
||
|
|
||
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
iget-boolean v1, p0, Lcom/discord/utilities/error/Error$Response;->global:Z
|
||
|
|
||
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;
|
||
|
|
||
|
const-string v1, ", messages="
|
||
|
|
||
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
invoke-virtual {p0}, Lcom/discord/utilities/error/Error$Response;->getMessages()Ljava/util/Map;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
const-string v1, ", message="
|
||
|
|
||
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
invoke-virtual {p0}, Lcom/discord/utilities/error/Error$Response;->getMessage()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
const-string v1, ")"
|
||
|
|
||
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|