HttpMethod.smali
.class public final enum Lcom/facebook/biddingkit/http/client/HttpMethod;
.super Ljava/lang/Enum;
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Enum<",
"Lcom/facebook/biddingkit/http/client/HttpMethod;",
">;"
}
.end annotation
# static fields
.field public static final enum GET:Lcom/facebook/biddingkit/http/client/HttpMethod;
.field public static final enum POST:Lcom/facebook/biddingkit/http/client/HttpMethod;
.field private static final synthetic c:[Lcom/facebook/biddingkit/http/client/HttpMethod;
# instance fields
.field private a:Z
.field private b:Z
# direct methods
.method static constructor <clinit>()V
.registers 4
new-instance v0, Lcom/facebook/biddingkit/http/client/HttpMethod;
const/4 v1, 0x0
const/4 v2, 0x1
const-string v3, "GET"
invoke-direct {v0, v3, v1, v2, v1}, Lcom/facebook/biddingkit/http/client/HttpMethod;-><init>(Ljava/lang/String;IZZ)V
sput-object v0, Lcom/facebook/biddingkit/http/client/HttpMethod;->GET:Lcom/facebook/biddingkit/http/client/HttpMethod;
new-instance v0, Lcom/facebook/biddingkit/http/client/HttpMethod;
const-string v3, "POST"
invoke-direct {v0, v3, v2, v2, v2}, Lcom/facebook/biddingkit/http/client/HttpMethod;-><init>(Ljava/lang/String;IZZ)V
sput-object v0, Lcom/facebook/biddingkit/http/client/HttpMethod;->POST:Lcom/facebook/biddingkit/http/client/HttpMethod;
const/4 v0, 0x2
new-array v0, v0, [Lcom/facebook/biddingkit/http/client/HttpMethod;
sget-object v3, Lcom/facebook/biddingkit/http/client/HttpMethod;->GET:Lcom/facebook/biddingkit/http/client/HttpMethod;
aput-object v3, v0, v1
sget-object v1, Lcom/facebook/biddingkit/http/client/HttpMethod;->POST:Lcom/facebook/biddingkit/http/client/HttpMethod;
aput-object v1, v0, v2
sput-object v0, Lcom/facebook/biddingkit/http/client/HttpMethod;->c:[Lcom/facebook/biddingkit/http/client/HttpMethod;
return-void
.end method
.method private constructor <init>(Ljava/lang/String;IZZ)V
.registers 5
.annotation system Ldalvik/annotation/Signature;
value = {
"(ZZ)V"
}
.end annotation
invoke-direct {p0, p1, p2}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V
iput-boolean p3, p0, Lcom/facebook/biddingkit/http/client/HttpMethod;->a:Z
iput-boolean p4, p0, Lcom/facebook/biddingkit/http/client/HttpMethod;->b:Z
return-void
.end method
.method public static valueOf(Ljava/lang/String;)Lcom/facebook/biddingkit/http/client/HttpMethod;
.registers 2
const-class v0, Lcom/facebook/biddingkit/http/client/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/facebook/biddingkit/http/client/HttpMethod;
return-object p0
.end method
.method public static values()[Lcom/facebook/biddingkit/http/client/HttpMethod;
.registers 1
sget-object v0, Lcom/facebook/biddingkit/http/client/HttpMethod;->c:[Lcom/facebook/biddingkit/http/client/HttpMethod;
invoke-virtual {v0}, [Lcom/facebook/biddingkit/http/client/HttpMethod;->clone()Ljava/lang/Object;
move-result-object v0
check-cast v0, [Lcom/facebook/biddingkit/http/client/HttpMethod;
return-object v0
.end method
# virtual methods
.method public getDoInput()Z
.registers 2
iget-boolean v0, p0, Lcom/facebook/biddingkit/http/client/HttpMethod;->a:Z
return v0
.end method
.method public getDoOutput()Z
.registers 2
iget-boolean v0, p0, Lcom/facebook/biddingkit/http/client/HttpMethod;->b:Z
return v0
.end method
.method public getMethodName()Ljava/lang/String;
.registers 2
invoke-virtual {p0}, Ljava/lang/Enum;->toString()Ljava/lang/String;
move-result-object v0
return-object v0
.end method