142 lines
3.3 KiB
Smali
142 lines
3.3 KiB
Smali
.class public final enum Lcom/vk/httpexecutor/api/HttpMethod;
|
|
.super Ljava/lang/Enum;
|
|
.source "HttpMethod.kt"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/lang/Enum<",
|
|
"Lcom/vk/httpexecutor/api/HttpMethod;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field private static final synthetic $VALUES:[Lcom/vk/httpexecutor/api/HttpMethod;
|
|
|
|
.field public static final enum GET:Lcom/vk/httpexecutor/api/HttpMethod;
|
|
|
|
.field public static final enum POST:Lcom/vk/httpexecutor/api/HttpMethod;
|
|
|
|
|
|
# instance fields
|
|
.field private final methodName:Ljava/lang/String;
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 4
|
|
|
|
const/4 v0, 0x2
|
|
|
|
new-array v0, v0, [Lcom/vk/httpexecutor/api/HttpMethod;
|
|
|
|
new-instance v1, Lcom/vk/httpexecutor/api/HttpMethod;
|
|
|
|
const-string v2, "GET"
|
|
|
|
const/4 v3, 0x0
|
|
|
|
.line 1
|
|
invoke-direct {v1, v2, v3, v2}, Lcom/vk/httpexecutor/api/HttpMethod;-><init>(Ljava/lang/String;ILjava/lang/String;)V
|
|
|
|
sput-object v1, Lcom/vk/httpexecutor/api/HttpMethod;->GET:Lcom/vk/httpexecutor/api/HttpMethod;
|
|
|
|
aput-object v1, v0, v3
|
|
|
|
new-instance v1, Lcom/vk/httpexecutor/api/HttpMethod;
|
|
|
|
const-string v2, "POST"
|
|
|
|
const/4 v3, 0x1
|
|
|
|
.line 2
|
|
invoke-direct {v1, v2, v3, v2}, Lcom/vk/httpexecutor/api/HttpMethod;-><init>(Ljava/lang/String;ILjava/lang/String;)V
|
|
|
|
sput-object v1, Lcom/vk/httpexecutor/api/HttpMethod;->POST:Lcom/vk/httpexecutor/api/HttpMethod;
|
|
|
|
aput-object v1, v0, v3
|
|
|
|
sput-object v0, Lcom/vk/httpexecutor/api/HttpMethod;->$VALUES:[Lcom/vk/httpexecutor/api/HttpMethod;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private constructor <init>(Ljava/lang/String;ILjava/lang/String;)V
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/lang/String;",
|
|
")V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-direct {p0, p1, p2}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V
|
|
|
|
iput-object p3, p0, Lcom/vk/httpexecutor/api/HttpMethod;->methodName:Ljava/lang/String;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static valueOf(Ljava/lang/String;)Lcom/vk/httpexecutor/api/HttpMethod;
|
|
.locals 1
|
|
|
|
const-class v0, Lcom/vk/httpexecutor/api/HttpMethod;
|
|
|
|
invoke-static {v0, p0}, Ljava/lang/Enum;->valueOf(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;
|
|
|
|
move-result-object p0
|
|
|
|
check-cast p0, Lcom/vk/httpexecutor/api/HttpMethod;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static values()[Lcom/vk/httpexecutor/api/HttpMethod;
|
|
.locals 1
|
|
|
|
sget-object v0, Lcom/vk/httpexecutor/api/HttpMethod;->$VALUES:[Lcom/vk/httpexecutor/api/HttpMethod;
|
|
|
|
invoke-virtual {v0}, [Lcom/vk/httpexecutor/api/HttpMethod;->clone()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, [Lcom/vk/httpexecutor/api/HttpMethod;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final a()Ljava/lang/String;
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/vk/httpexecutor/api/HttpMethod;->methodName:Ljava/lang/String;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final b()Z
|
|
.locals 1
|
|
|
|
.line 1
|
|
sget-object v0, Lcom/vk/httpexecutor/api/HttpMethod;->POST:Lcom/vk/httpexecutor/api/HttpMethod;
|
|
|
|
if-ne p0, v0, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
return v0
|
|
.end method
|