SocketErrorMsgUtils.smali

.class public Lcom/cmcm/xiaobao/phone/smarthome/socket/SocketErrorMsgUtils;
.super Ljava/lang/Object;


# direct methods
.method public constructor <init>()V
    .registers 1

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method public static codeMessage(I)Ljava/lang/String;
    .registers 2

    sget v0, Lcom/cmcm/xiaobao/phone/smarthome/R$string;->socket_op_failed:I

    invoke-static {p0, v0}, Lcom/cmcm/xiaobao/phone/smarthome/socket/SocketErrorMsgUtils;->codeMessage(II)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public static codeMessage(II)Ljava/lang/String;
    .registers 4
    .param p1    # I
        .annotation build Landroid/support/annotation/StringRes;
        .end annotation
    .end param

    invoke-static {p0, p1}, Lcom/cmcm/xiaobao/phone/smarthome/socket/SocketErrorMsgUtils;->codeMessageResId(II)I

    move-result v0

    invoke-static {}, Lcom/cmcm/xiaobao/phone/smarthome/sdk/SmartHomeSDK;->getInstance()Lcom/cmcm/xiaobao/phone/smarthome/sdk/SmartHomeSDK;

    move-result-object v1

    invoke-virtual {v1}, Lcom/cmcm/xiaobao/phone/smarthome/sdk/SmartHomeSDK;->getAppContext()Landroid/content/Context;

    move-result-object v1

    invoke-virtual {v1, v0}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public static codeMessageResId(I)I
    .registers 2

    sget v0, Lcom/cmcm/xiaobao/phone/smarthome/R$string;->socket_op_failed:I

    invoke-static {p0, v0}, Lcom/cmcm/xiaobao/phone/smarthome/socket/SocketErrorMsgUtils;->codeMessageResId(II)I

    move-result v0

    return v0
.end method

.method public static codeMessageResId(II)I
    .registers 2
    .param p1    # I
        .annotation build Landroid/support/annotation/StringRes;
        .end annotation
    .end param

    packed-switch p0, :pswitch_data_8

    :goto_3
    :pswitch_3
    return p1

    :pswitch_4
    sget p1, Lcom/cmcm/xiaobao/phone/smarthome/R$string;->socket_cant_connect_speaker:I

    goto :goto_3

    nop

    :pswitch_data_8
    .packed-switch 0x65
        :pswitch_4
        :pswitch_4
        :pswitch_4
        :pswitch_4
        :pswitch_3
        :pswitch_3
        :pswitch_4
    .end packed-switch
.end method