CSPullLeaveMessage.smali
.class public Lio/rong/message/CSPullLeaveMessage;
.super Lio/rong/imlib/model/MessageContent;
.source "CSPullLeaveMessage.java"
# annotations
.annotation runtime Lio/rong/imlib/MessageTag;
flag = 0x1
value = "RC:CsPLM"
.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/CSPullLeaveMessage;",
">;"
}
.end annotation
.end field
.field private static final TAG:Ljava/lang/String; = "CSRequestLeaveMessage"
# instance fields
.field private content:Ljava/lang/String;
# direct methods
.method static constructor <clinit>()V
.registers 1
.line 1
new-instance v0, Lio/rong/message/CSPullLeaveMessage$1;
invoke-direct {v0}, Lio/rong/message/CSPullLeaveMessage$1;-><init>()V
sput-object v0, Lio/rong/message/CSPullLeaveMessage;->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 protected constructor <init>(Landroid/os/Parcel;)V
.registers 2
.line 8
invoke-direct {p0}, Lio/rong/imlib/model/MessageContent;-><init>()V
.line 9
invoke-virtual {p1}, Landroid/os/Parcel;->readString()Ljava/lang/String;
move-result-object p1
iput-object p1, p0, Lio/rong/message/CSPullLeaveMessage;->content:Ljava/lang/String;
return-void
.end method
.method public constructor <init>([B)V
.registers 5
const-string v0, "CSRequestLeaveMessage"
.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, "content"
.line 6
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/CSPullLeaveMessage;->content:Ljava/lang/String;
:try_end_21
.catch Lorg/json/JSONException; {:try_start_14 .. :try_end_21} :catch_22
goto :goto_3b
:catch_22
move-exception p1
.line 7
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_3b
return-void
.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
.line 1
new-array v0, v0, [B
return-object v0
.end method
.method public getContent()Ljava/lang/String;
.registers 2
.line 1
iget-object v0, p0, Lio/rong/message/CSPullLeaveMessage;->content:Ljava/lang/String;
return-object v0
.end method
.method public setContent(Ljava/lang/String;)V
.registers 2
.line 1
iput-object p1, p0, Lio/rong/message/CSPullLeaveMessage;->content:Ljava/lang/String;
return-void
.end method
.method public writeToParcel(Landroid/os/Parcel;I)V
.registers 3
.line 1
iget-object p2, p0, Lio/rong/message/CSPullLeaveMessage;->content:Ljava/lang/String;
invoke-virtual {p1, p2}, Landroid/os/Parcel;->writeString(Ljava/lang/String;)V
return-void
.end method