CreativeOrientation.smali
.class public final enum Lcom/tradplus/ads/common/CreativeOrientation;
.super Ljava/lang/Enum;
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Enum<",
"Lcom/tradplus/ads/common/CreativeOrientation;",
">;"
}
.end annotation
# static fields
.field public static final enum DEVICE:Lcom/tradplus/ads/common/CreativeOrientation;
.field public static final enum LANDSCAPE:Lcom/tradplus/ads/common/CreativeOrientation;
.field public static final enum PORTRAIT:Lcom/tradplus/ads/common/CreativeOrientation;
.field public static final enum UNDEFINED:Lcom/tradplus/ads/common/CreativeOrientation;
.field private static final synthetic a:[Lcom/tradplus/ads/common/CreativeOrientation;
# direct methods
.method static constructor <clinit>()V
.registers 6
new-instance v0, Lcom/tradplus/ads/common/CreativeOrientation;
const/4 v1, 0x0
const-string v2, "PORTRAIT"
invoke-direct {v0, v2, v1}, Lcom/tradplus/ads/common/CreativeOrientation;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/tradplus/ads/common/CreativeOrientation;->PORTRAIT:Lcom/tradplus/ads/common/CreativeOrientation;
new-instance v0, Lcom/tradplus/ads/common/CreativeOrientation;
const/4 v2, 0x1
const-string v3, "LANDSCAPE"
invoke-direct {v0, v3, v2}, Lcom/tradplus/ads/common/CreativeOrientation;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/tradplus/ads/common/CreativeOrientation;->LANDSCAPE:Lcom/tradplus/ads/common/CreativeOrientation;
new-instance v0, Lcom/tradplus/ads/common/CreativeOrientation;
const/4 v3, 0x2
const-string v4, "DEVICE"
invoke-direct {v0, v4, v3}, Lcom/tradplus/ads/common/CreativeOrientation;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/tradplus/ads/common/CreativeOrientation;->DEVICE:Lcom/tradplus/ads/common/CreativeOrientation;
new-instance v0, Lcom/tradplus/ads/common/CreativeOrientation;
const/4 v4, 0x3
const-string v5, "UNDEFINED"
invoke-direct {v0, v5, v4}, Lcom/tradplus/ads/common/CreativeOrientation;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/tradplus/ads/common/CreativeOrientation;->UNDEFINED:Lcom/tradplus/ads/common/CreativeOrientation;
const/4 v0, 0x4
new-array v0, v0, [Lcom/tradplus/ads/common/CreativeOrientation;
sget-object v5, Lcom/tradplus/ads/common/CreativeOrientation;->PORTRAIT:Lcom/tradplus/ads/common/CreativeOrientation;
aput-object v5, v0, v1
sget-object v1, Lcom/tradplus/ads/common/CreativeOrientation;->LANDSCAPE:Lcom/tradplus/ads/common/CreativeOrientation;
aput-object v1, v0, v2
sget-object v1, Lcom/tradplus/ads/common/CreativeOrientation;->DEVICE:Lcom/tradplus/ads/common/CreativeOrientation;
aput-object v1, v0, v3
sget-object v1, Lcom/tradplus/ads/common/CreativeOrientation;->UNDEFINED:Lcom/tradplus/ads/common/CreativeOrientation;
aput-object v1, v0, v4
sput-object v0, Lcom/tradplus/ads/common/CreativeOrientation;->a:[Lcom/tradplus/ads/common/CreativeOrientation;
return-void
.end method
.method private constructor <init>(Ljava/lang/String;I)V
.registers 3
.annotation system Ldalvik/annotation/Signature;
value = {
"()V"
}
.end annotation
invoke-direct {p0, p1, p2}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V
return-void
.end method
.method public static fromHeader(Ljava/lang/String;)Lcom/tradplus/ads/common/CreativeOrientation;
.registers 2
const-string v0, "l"
invoke-virtual {v0, p0}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
move-result v0
if-eqz v0, :cond_b
sget-object p0, Lcom/tradplus/ads/common/CreativeOrientation;->LANDSCAPE:Lcom/tradplus/ads/common/CreativeOrientation;
return-object p0
:cond_b
const-string v0, "p"
invoke-virtual {v0, p0}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
move-result p0
if-eqz p0, :cond_16
sget-object p0, Lcom/tradplus/ads/common/CreativeOrientation;->PORTRAIT:Lcom/tradplus/ads/common/CreativeOrientation;
return-object p0
:cond_16
sget-object p0, Lcom/tradplus/ads/common/CreativeOrientation;->DEVICE:Lcom/tradplus/ads/common/CreativeOrientation;
return-object p0
.end method
.method public static valueOf(Ljava/lang/String;)Lcom/tradplus/ads/common/CreativeOrientation;
.registers 2
const-class v0, Lcom/tradplus/ads/common/CreativeOrientation;
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/tradplus/ads/common/CreativeOrientation;
return-object p0
.end method
.method public static values()[Lcom/tradplus/ads/common/CreativeOrientation;
.registers 1
sget-object v0, Lcom/tradplus/ads/common/CreativeOrientation;->a:[Lcom/tradplus/ads/common/CreativeOrientation;
invoke-virtual {v0}, [Lcom/tradplus/ads/common/CreativeOrientation;->clone()Ljava/lang/Object;
move-result-object v0
check-cast v0, [Lcom/tradplus/ads/common/CreativeOrientation;
return-object v0
.end method