CSTerminateMessage.smali
.class public Lio/rong/message/CSTerminateMessage;
.super Lio/rong/imlib/model/MessageContent;
.source "CSTerminateMessage.java"
# annotations
.annotation runtime Lio/rong/imlib/MessageTag;
flag = 0x0
value = "RC:CsEnd"
.end annotation
# static fields
.field public static final CREATOR:Landroid/os/Parcelable$Creator;
.annotation system Ldalvik/annotation/Signature;
value = {
"Landroid/os/Parcelable$Creator<",
"Lio/rong/message/CSTerminateMessage;",
">;"
}
.end annotation
.end field
.field private static final TAG:Ljava/lang/String; = "CSTerminateMessage"
# instance fields
.field private code:I
.field private msg:Ljava/lang/String;
.field private sid:Ljava/lang/String;
# direct methods
.method static constructor <clinit>()V
.registers 1
.line 1
new-instance v0, Lio/rong/message/CSTerminateMessage$1;
invoke-direct {v0}, Lio/rong/message/CSTerminateMessage$1;-><init>()V
sput-object v0, Lio/rong/message/CSTerminateMessage;->CREATOR:Landroid/os/Parcelable$Creator;
return-void
.end method
.method public constructor <init>()V
.registers 1
.line 1
invoke-direct {p0}, Lio/rong/imlib/model/MessageContent;-><init>()V
return-void
.end method
.method public constructor <init>(Landroid/os/Parcel;)V
.registers 3
.line 10
invoke-direct {p0}, Lio/rong/imlib/model/MessageContent;-><init>()V
.line 11
invoke-static {p1}, Lio/rong/common/ParcelUtils;->readIntFromParcel(Landroid/os/Parcel;)Ljava/lang/Integer;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I
move-result v0
iput v0, p0, Lio/rong/message/CSTerminateMessage;->code:I
.line 12
invoke-static {p1}, Lio/rong/common/ParcelUtils;->readFromParcel(Landroid/os/Parcel;)Ljava/lang/String;
move-result-object v0
iput-object v0, p0, Lio/rong/message/CSTerminateMessage;->msg:Ljava/lang/String;
.line 13
invoke-static {p1}, Lio/rong/common/ParcelUtils;->readFromParcel(Landroid/os/Parcel;)Ljava/lang/String;
move-result-object p1
iput-object p1, p0, Lio/rong/message/CSTerminateMessage;->sid:Ljava/lang/String;
return-void
.end method
.method public constructor <init>([B)V
.registers 5
const-string v0, "CSTerminateMessage"
.line 2
invoke-direct {p0}, Lio/rong/imlib/model/MessageContent;-><init>()V
.line 3
:try_start_5
new-instance v1, Ljava/lang/String;
const-string v2, "UTF-8"
invoke-direct {v1, p1, v2}, Ljava/lang/String;-><init>([BLjava/lang/String;)V
:try_end_c
.catch Ljava/io/UnsupportedEncodingException; {:try_start_5 .. :try_end_c} :catch_d
goto :goto_14
:catch_d
move-exception p1
const-string v1, "UnsupportedEncodingException "
.line 4
invoke-static {v0, v1, p1}, Lio/rong/common/RLog;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
const/4 v1, 0x0
.line 5
:goto_14
:try_start_14
new-instance p1, Lorg/json/JSONObject;
invoke-direct {p1, v1}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V
const-string v1, "code"
.line 6
invoke-virtual {p1, v1}, Lorg/json/JSONObject;->optInt(Ljava/lang/String;)I
move-result v1
iput v1, p0, Lio/rong/message/CSTerminateMessage;->code:I
const-string v1, "msg"
.line 7
invoke-virtual {p1, v1}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;
move-result-object v1
iput-object v1, p0, Lio/rong/message/CSTerminateMessage;->msg:Ljava/lang/String;
const-string v1, "sid"
.line 8
invoke-virtual {p1, v1}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;
move-result-object p1
iput-object p1, p0, Lio/rong/message/CSTerminateMessage;->sid:Ljava/lang/String;
:try_end_31
.catch Lorg/json/JSONException; {:try_start_14 .. :try_end_31} :catch_32
goto :goto_4b
:catch_32
move-exception p1
.line 9
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "JSONException "
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p1}, Lorg/json/JSONException;->getMessage()Ljava/lang/String;
move-result-object p1
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
invoke-static {v0, p1}, Lio/rong/common/RLog;->e(Ljava/lang/String;Ljava/lang/String;)I
:goto_4b
return-void
.end method
.method public static obtain()Lio/rong/message/CSTerminateMessage;
.registers 1
.line 1
new-instance v0, Lio/rong/message/CSTerminateMessage;
invoke-direct {v0}, Lio/rong/message/CSTerminateMessage;-><init>()V
return-object v0
.end method
# virtual methods
.method public describeContents()I
.registers 2
const/4 v0, 0x0
return v0
.end method
.method public encode()[B
.registers 2
const/4 v0, 0x0
return-object v0
.end method
.method public getCode()I
.registers 2
.line 1
iget v0, p0, Lio/rong/message/CSTerminateMessage;->code:I
return v0
.end method
.method public getMsg()Ljava/lang/String;
.registers 2
.line 1
iget-object v0, p0, Lio/rong/message/CSTerminateMessage;->msg:Ljava/lang/String;
return-object v0
.end method
.method public getsid()Ljava/lang/String;
.registers 2
.line 1
iget-object v0, p0, Lio/rong/message/CSTerminateMessage;->sid:Ljava/lang/String;
return-object v0
.end method
.method public writeToParcel(Landroid/os/Parcel;I)V
.registers 3
.line 1
iget p2, p0, Lio/rong/message/CSTerminateMessage;->code:I
invoke-static {p2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object p2
invoke-static {p1, p2}, Lio/rong/common/ParcelUtils;->writeToParcel(Landroid/os/Parcel;Ljava/lang/Integer;)V
.line 2
iget-object p2, p0, Lio/rong/message/CSTerminateMessage;->msg:Ljava/lang/String;
invoke-static {p1, p2}, Lio/rong/common/ParcelUtils;->writeToParcel(Landroid/os/Parcel;Ljava/lang/String;)V
.line 3
iget-object p2, p0, Lio/rong/message/CSTerminateMessage;->sid:Ljava/lang/String;
invoke-static {p1, p2}, Lio/rong/common/ParcelUtils;->writeToParcel(Landroid/os/Parcel;Ljava/lang/String;)V
return-void
.end method