CustomServiceMode.smali
.class public final enum Lio/rong/imlib/model/CustomServiceMode;
.super Ljava/lang/Enum;
.source "CustomServiceMode.java"
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Enum<",
"Lio/rong/imlib/model/CustomServiceMode;",
">;"
}
.end annotation
# static fields
.field private static final synthetic $VALUES:[Lio/rong/imlib/model/CustomServiceMode;
.field public static final enum CUSTOM_SERVICE_MODE_HUMAN:Lio/rong/imlib/model/CustomServiceMode;
.field public static final enum CUSTOM_SERVICE_MODE_HUMAN_FIRST:Lio/rong/imlib/model/CustomServiceMode;
.field public static final enum CUSTOM_SERVICE_MODE_NO_SERVICE:Lio/rong/imlib/model/CustomServiceMode;
.field public static final enum CUSTOM_SERVICE_MODE_ROBOT:Lio/rong/imlib/model/CustomServiceMode;
.field public static final enum CUSTOM_SERVICE_MODE_ROBOT_FIRST:Lio/rong/imlib/model/CustomServiceMode;
# instance fields
.field private mode:I
# direct methods
.method static constructor <clinit>()V
.registers 7
.line 1
new-instance v0, Lio/rong/imlib/model/CustomServiceMode;
const/4 v1, 0x0
const-string v2, "CUSTOM_SERVICE_MODE_NO_SERVICE"
invoke-direct {v0, v2, v1, v1}, Lio/rong/imlib/model/CustomServiceMode;-><init>(Ljava/lang/String;II)V
sput-object v0, Lio/rong/imlib/model/CustomServiceMode;->CUSTOM_SERVICE_MODE_NO_SERVICE:Lio/rong/imlib/model/CustomServiceMode;
.line 2
new-instance v0, Lio/rong/imlib/model/CustomServiceMode;
const/4 v2, 0x1
const-string v3, "CUSTOM_SERVICE_MODE_ROBOT"
invoke-direct {v0, v3, v2, v2}, Lio/rong/imlib/model/CustomServiceMode;-><init>(Ljava/lang/String;II)V
sput-object v0, Lio/rong/imlib/model/CustomServiceMode;->CUSTOM_SERVICE_MODE_ROBOT:Lio/rong/imlib/model/CustomServiceMode;
.line 3
new-instance v0, Lio/rong/imlib/model/CustomServiceMode;
const/4 v3, 0x2
const-string v4, "CUSTOM_SERVICE_MODE_HUMAN"
invoke-direct {v0, v4, v3, v3}, Lio/rong/imlib/model/CustomServiceMode;-><init>(Ljava/lang/String;II)V
sput-object v0, Lio/rong/imlib/model/CustomServiceMode;->CUSTOM_SERVICE_MODE_HUMAN:Lio/rong/imlib/model/CustomServiceMode;
.line 4
new-instance v0, Lio/rong/imlib/model/CustomServiceMode;
const/4 v4, 0x3
const-string v5, "CUSTOM_SERVICE_MODE_ROBOT_FIRST"
invoke-direct {v0, v5, v4, v4}, Lio/rong/imlib/model/CustomServiceMode;-><init>(Ljava/lang/String;II)V
sput-object v0, Lio/rong/imlib/model/CustomServiceMode;->CUSTOM_SERVICE_MODE_ROBOT_FIRST:Lio/rong/imlib/model/CustomServiceMode;
.line 5
new-instance v0, Lio/rong/imlib/model/CustomServiceMode;
const/4 v5, 0x4
const-string v6, "CUSTOM_SERVICE_MODE_HUMAN_FIRST"
invoke-direct {v0, v6, v5, v5}, Lio/rong/imlib/model/CustomServiceMode;-><init>(Ljava/lang/String;II)V
sput-object v0, Lio/rong/imlib/model/CustomServiceMode;->CUSTOM_SERVICE_MODE_HUMAN_FIRST:Lio/rong/imlib/model/CustomServiceMode;
const/4 v0, 0x5
.line 6
new-array v0, v0, [Lio/rong/imlib/model/CustomServiceMode;
sget-object v6, Lio/rong/imlib/model/CustomServiceMode;->CUSTOM_SERVICE_MODE_NO_SERVICE:Lio/rong/imlib/model/CustomServiceMode;
aput-object v6, v0, v1
sget-object v1, Lio/rong/imlib/model/CustomServiceMode;->CUSTOM_SERVICE_MODE_ROBOT:Lio/rong/imlib/model/CustomServiceMode;
aput-object v1, v0, v2
sget-object v1, Lio/rong/imlib/model/CustomServiceMode;->CUSTOM_SERVICE_MODE_HUMAN:Lio/rong/imlib/model/CustomServiceMode;
aput-object v1, v0, v3
sget-object v1, Lio/rong/imlib/model/CustomServiceMode;->CUSTOM_SERVICE_MODE_ROBOT_FIRST:Lio/rong/imlib/model/CustomServiceMode;
aput-object v1, v0, v4
sget-object v1, Lio/rong/imlib/model/CustomServiceMode;->CUSTOM_SERVICE_MODE_HUMAN_FIRST:Lio/rong/imlib/model/CustomServiceMode;
aput-object v1, v0, v5
sput-object v0, Lio/rong/imlib/model/CustomServiceMode;->$VALUES:[Lio/rong/imlib/model/CustomServiceMode;
return-void
.end method
.method private constructor <init>(Ljava/lang/String;II)V
.registers 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(I)V"
}
.end annotation
.line 1
invoke-direct {p0, p1, p2}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V
.line 2
iput p3, p0, Lio/rong/imlib/model/CustomServiceMode;->mode:I
return-void
.end method
.method public static valueOf(I)Lio/rong/imlib/model/CustomServiceMode;
.registers 6
.line 2
invoke-static {}, Lio/rong/imlib/model/CustomServiceMode;->values()[Lio/rong/imlib/model/CustomServiceMode;
move-result-object v0
array-length v1, v0
const/4 v2, 0x0
:goto_6
if-ge v2, v1, :cond_12
aget-object v3, v0, v2
.line 3
iget v4, v3, Lio/rong/imlib/model/CustomServiceMode;->mode:I
if-ne v4, p0, :cond_f
return-object v3
:cond_f
add-int/lit8 v2, v2, 0x1
goto :goto_6
.line 4
:cond_12
sget-object p0, Lio/rong/imlib/model/CustomServiceMode;->CUSTOM_SERVICE_MODE_ROBOT:Lio/rong/imlib/model/CustomServiceMode;
return-object p0
.end method
.method public static valueOf(Ljava/lang/String;)Lio/rong/imlib/model/CustomServiceMode;
.registers 2
.line 1
const-class v0, Lio/rong/imlib/model/CustomServiceMode;
invoke-static {v0, p0}, Ljava/lang/Enum;->valueOf(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;
move-result-object p0
check-cast p0, Lio/rong/imlib/model/CustomServiceMode;
return-object p0
.end method
.method public static values()[Lio/rong/imlib/model/CustomServiceMode;
.registers 1
.line 1
sget-object v0, Lio/rong/imlib/model/CustomServiceMode;->$VALUES:[Lio/rong/imlib/model/CustomServiceMode;
invoke-virtual {v0}, [Lio/rong/imlib/model/CustomServiceMode;->clone()Ljava/lang/Object;
move-result-object v0
check-cast v0, [Lio/rong/imlib/model/CustomServiceMode;
return-object v0
.end method
# virtual methods
.method public getValue()I
.registers 2
.line 1
iget v0, p0, Lio/rong/imlib/model/CustomServiceMode;->mode:I
return v0
.end method