PushErrorCode.smali

.class public final enum Lio/rong/push/PushErrorCode;
.super Ljava/lang/Enum;
.source "PushErrorCode.java"


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "Ljava/lang/Enum<",
        "Lio/rong/push/PushErrorCode;",
        ">;"
    }
.end annotation


# static fields
.field private static final synthetic $VALUES:[Lio/rong/push/PushErrorCode;

.field public static final enum IO_EXCEPTION:Lio/rong/push/PushErrorCode;

.field public static final enum NOT_REGISTER_IN_ADMIN:Lio/rong/push/PushErrorCode;

.field public static final enum NOT_SUPPORT_BY_OFFICIAL_PUSH:Lio/rong/push/PushErrorCode;

.field public static final enum PARAMETER_ERROR:Lio/rong/push/PushErrorCode;

.field public static final enum SERVER_DISCONNECTED:Lio/rong/push/PushErrorCode;

.field public static final enum UNKNOWN:Lio/rong/push/PushErrorCode;


# instance fields
.field private code:I

.field private msg:Ljava/lang/String;


# direct methods
.method static constructor <clinit>()V
    .registers 10

    .line 1
    new-instance v0, Lio/rong/push/PushErrorCode;

    const/4 v1, 0x0

    const-string v2, "UNKNOWN"

    const/4 v3, -0x1

    const-string v4, "unknown code"

    invoke-direct {v0, v2, v1, v3, v4}, Lio/rong/push/PushErrorCode;-><init>(Ljava/lang/String;IILjava/lang/String;)V

    sput-object v0, Lio/rong/push/PushErrorCode;->UNKNOWN:Lio/rong/push/PushErrorCode;

    .line 2
    new-instance v0, Lio/rong/push/PushErrorCode;

    const/4 v2, 0x1

    const-string v3, "IO_EXCEPTION"

    const v4, 0xc351

    const-string v5, "IOException"

    invoke-direct {v0, v3, v2, v4, v5}, Lio/rong/push/PushErrorCode;-><init>(Ljava/lang/String;IILjava/lang/String;)V

    sput-object v0, Lio/rong/push/PushErrorCode;->IO_EXCEPTION:Lio/rong/push/PushErrorCode;

    .line 3
    new-instance v0, Lio/rong/push/PushErrorCode;

    const/4 v3, 0x2

    const-string v4, "PARAMETER_ERROR"

    const v5, 0xc352

    const-string v6, "the parameter is error."

    invoke-direct {v0, v4, v3, v5, v6}, Lio/rong/push/PushErrorCode;-><init>(Ljava/lang/String;IILjava/lang/String;)V

    sput-object v0, Lio/rong/push/PushErrorCode;->PARAMETER_ERROR:Lio/rong/push/PushErrorCode;

    .line 4
    new-instance v0, Lio/rong/push/PushErrorCode;

    const/4 v4, 0x3

    const-string v5, "NOT_REGISTER_IN_ADMIN"

    const v6, 0xc353

    const-string v7, "haven\'t registered the third party push from your admin"

    invoke-direct {v0, v5, v4, v6, v7}, Lio/rong/push/PushErrorCode;-><init>(Ljava/lang/String;IILjava/lang/String;)V

    sput-object v0, Lio/rong/push/PushErrorCode;->NOT_REGISTER_IN_ADMIN:Lio/rong/push/PushErrorCode;

    .line 5
    new-instance v0, Lio/rong/push/PushErrorCode;

    const/4 v5, 0x4

    const-string v6, "SERVER_DISCONNECTED"

    const v7, 0xc354

    const-string v8, "the socket is disconnect."

    invoke-direct {v0, v6, v5, v7, v8}, Lio/rong/push/PushErrorCode;-><init>(Ljava/lang/String;IILjava/lang/String;)V

    sput-object v0, Lio/rong/push/PushErrorCode;->SERVER_DISCONNECTED:Lio/rong/push/PushErrorCode;

    .line 6
    new-instance v0, Lio/rong/push/PushErrorCode;

    const/4 v6, 0x5

    const-string v7, "NOT_SUPPORT_BY_OFFICIAL_PUSH"

    const v8, 0xc355

    const-string v9, "this device is not support by official push."

    invoke-direct {v0, v7, v6, v8, v9}, Lio/rong/push/PushErrorCode;-><init>(Ljava/lang/String;IILjava/lang/String;)V

    sput-object v0, Lio/rong/push/PushErrorCode;->NOT_SUPPORT_BY_OFFICIAL_PUSH:Lio/rong/push/PushErrorCode;

    const/4 v0, 0x6

    .line 7
    new-array v0, v0, [Lio/rong/push/PushErrorCode;

    sget-object v7, Lio/rong/push/PushErrorCode;->UNKNOWN:Lio/rong/push/PushErrorCode;

    aput-object v7, v0, v1

    sget-object v1, Lio/rong/push/PushErrorCode;->IO_EXCEPTION:Lio/rong/push/PushErrorCode;

    aput-object v1, v0, v2

    sget-object v1, Lio/rong/push/PushErrorCode;->PARAMETER_ERROR:Lio/rong/push/PushErrorCode;

    aput-object v1, v0, v3

    sget-object v1, Lio/rong/push/PushErrorCode;->NOT_REGISTER_IN_ADMIN:Lio/rong/push/PushErrorCode;

    aput-object v1, v0, v4

    sget-object v1, Lio/rong/push/PushErrorCode;->SERVER_DISCONNECTED:Lio/rong/push/PushErrorCode;

    aput-object v1, v0, v5

    sget-object v1, Lio/rong/push/PushErrorCode;->NOT_SUPPORT_BY_OFFICIAL_PUSH:Lio/rong/push/PushErrorCode;

    aput-object v1, v0, v6

    sput-object v0, Lio/rong/push/PushErrorCode;->$VALUES:[Lio/rong/push/PushErrorCode;

    return-void
.end method

.method private constructor <init>(Ljava/lang/String;IILjava/lang/String;)V
    .registers 5
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(I",
            "Ljava/lang/String;",
            ")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/push/PushErrorCode;->code:I

    .line 3
    iput-object p4, p0, Lio/rong/push/PushErrorCode;->msg:Ljava/lang/String;

    return-void
.end method

.method public static valueOf(Ljava/lang/String;)Lio/rong/push/PushErrorCode;
    .registers 2

    .line 1
    const-class v0, Lio/rong/push/PushErrorCode;

    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/push/PushErrorCode;

    return-object p0
.end method

.method public static values()[Lio/rong/push/PushErrorCode;
    .registers 1

    .line 1
    sget-object v0, Lio/rong/push/PushErrorCode;->$VALUES:[Lio/rong/push/PushErrorCode;

    invoke-virtual {v0}, [Lio/rong/push/PushErrorCode;->clone()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, [Lio/rong/push/PushErrorCode;

    return-object v0
.end method


# virtual methods
.method public getCode()I
    .registers 2

    .line 1
    iget v0, p0, Lio/rong/push/PushErrorCode;->code:I

    return v0
.end method