RecallNotificationMessage.smali
.class public Lio/rong/message/RecallNotificationMessage;
.super Lio/rong/imlib/model/MessageContent;
.source "RecallNotificationMessage.java"
# annotations
.annotation runtime Lio/rong/imlib/MessageTag;
flag = 0x1
value = "RC:RcNtf"
.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/RecallNotificationMessage;",
">;"
}
.end annotation
.end field
.field private static final TAG:Ljava/lang/String; = "RecallNotificationMessage"
# instance fields
.field private mAdmin:Z
.field private mDelete:Z
.field private mOperatorId:Ljava/lang/String;
.field private mOriginalObjectName:Ljava/lang/String;
.field private mRecallTime:J
.field private recallActionTime:J
.field private recallContent:Ljava/lang/String;
# direct methods
.method static constructor <clinit>()V
.registers 1
.line 1
new-instance v0, Lio/rong/message/RecallNotificationMessage$1;
invoke-direct {v0}, Lio/rong/message/RecallNotificationMessage$1;-><init>()V
sput-object v0, Lio/rong/message/RecallNotificationMessage;->CREATOR:Landroid/os/Parcelable$Creator;
return-void
.end method
.method public constructor <init>(Landroid/os/Parcel;)V
.registers 5
.line 34
invoke-direct {p0}, Lio/rong/imlib/model/MessageContent;-><init>()V
.line 35
const-class v0, Lio/rong/imlib/model/UserInfo;
invoke-static {p1, v0}, Lio/rong/common/ParcelUtils;->readFromParcel(Landroid/os/Parcel;Ljava/lang/Class;)Landroid/os/Parcelable;
move-result-object v0
check-cast v0, Lio/rong/imlib/model/UserInfo;
invoke-virtual {p0, v0}, Lio/rong/imlib/model/MessageContent;->setUserInfo(Lio/rong/imlib/model/UserInfo;)V
.line 36
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/RecallNotificationMessage;->mOperatorId:Ljava/lang/String;
.line 37
invoke-static {p1}, Lio/rong/common/ParcelUtils;->readLongFromParcel(Landroid/os/Parcel;)Ljava/lang/Long;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/Long;->longValue()J
move-result-wide v0
iput-wide v0, p0, Lio/rong/message/RecallNotificationMessage;->mRecallTime:J
.line 38
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/RecallNotificationMessage;->mOriginalObjectName:Ljava/lang/String;
.line 39
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
const/4 v1, 0x0
const/4 v2, 0x1
if-ne v0, v2, :cond_32
const/4 v0, 0x1
goto :goto_33
:cond_32
const/4 v0, 0x0
:goto_33
iput-boolean v0, p0, Lio/rong/message/RecallNotificationMessage;->mAdmin:Z
.line 40
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
if-ne v0, v2, :cond_40
const/4 v1, 0x1
:cond_40
iput-boolean v1, p0, Lio/rong/message/RecallNotificationMessage;->mDelete:Z
.line 41
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/RecallNotificationMessage;->recallContent:Ljava/lang/String;
.line 42
invoke-static {p1}, Lio/rong/common/ParcelUtils;->readLongFromParcel(Landroid/os/Parcel;)Ljava/lang/Long;
move-result-object p1
invoke-virtual {p1}, Ljava/lang/Long;->longValue()J
move-result-wide v0
iput-wide v0, p0, Lio/rong/message/RecallNotificationMessage;->recallActionTime:J
return-void
.end method
.method public constructor <init>(Ljava/lang/String;JLjava/lang/String;ZZ)V
.registers 7
.line 1
invoke-direct {p0}, Lio/rong/imlib/model/MessageContent;-><init>()V
.line 2
iput-object p1, p0, Lio/rong/message/RecallNotificationMessage;->mOperatorId:Ljava/lang/String;
.line 3
iput-wide p2, p0, Lio/rong/message/RecallNotificationMessage;->mRecallTime:J
.line 4
iput-object p4, p0, Lio/rong/message/RecallNotificationMessage;->mOriginalObjectName:Ljava/lang/String;
.line 5
iput-boolean p6, p0, Lio/rong/message/RecallNotificationMessage;->mDelete:Z
.line 6
iput-boolean p5, p0, Lio/rong/message/RecallNotificationMessage;->mAdmin:Z
return-void
.end method
.method public constructor <init>(Ljava/lang/String;JLjava/lang/String;ZZLjava/lang/String;J)V
.registers 10
.line 7
invoke-direct {p0}, Lio/rong/imlib/model/MessageContent;-><init>()V
.line 8
iput-object p1, p0, Lio/rong/message/RecallNotificationMessage;->mOperatorId:Ljava/lang/String;
.line 9
iput-wide p2, p0, Lio/rong/message/RecallNotificationMessage;->mRecallTime:J
.line 10
iput-object p4, p0, Lio/rong/message/RecallNotificationMessage;->mOriginalObjectName:Ljava/lang/String;
.line 11
iput-boolean p6, p0, Lio/rong/message/RecallNotificationMessage;->mDelete:Z
.line 12
iput-boolean p5, p0, Lio/rong/message/RecallNotificationMessage;->mAdmin:Z
.line 13
iput-object p7, p0, Lio/rong/message/RecallNotificationMessage;->recallContent:Ljava/lang/String;
.line 14
iput-wide p8, p0, Lio/rong/message/RecallNotificationMessage;->recallActionTime:J
return-void
.end method
.method public constructor <init>([B)V
.registers 11
const-string v0, "recallActionTime"
const-string v1, "recallContent"
const-string v2, "originalObjectName"
const-string v3, "recallTime"
const-string v4, "operatorId"
const-string v5, "user"
const-string v6, "RecallNotificationMessage"
.line 15
invoke-direct {p0}, Lio/rong/imlib/model/MessageContent;-><init>()V
.line 16
:try_start_11
new-instance v7, Ljava/lang/String;
const-string v8, "UTF-8"
invoke-direct {v7, p1, v8}, Ljava/lang/String;-><init>([BLjava/lang/String;)V
:try_end_18
.catch Ljava/io/UnsupportedEncodingException; {:try_start_11 .. :try_end_18} :catch_19
goto :goto_22
:catch_19
move-exception p1
.line 17
invoke-virtual {p1}, Ljava/io/UnsupportedEncodingException;->getMessage()Ljava/lang/String;
move-result-object p1
invoke-static {v6, p1}, Lio/rong/common/RLog;->e(Ljava/lang/String;Ljava/lang/String;)I
const/4 v7, 0x0
.line 18
:goto_22
:try_start_22
new-instance p1, Lorg/json/JSONObject;
invoke-direct {p1, v7}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V
.line 19
invoke-virtual {p1, v5}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z
move-result v7
if-eqz v7, :cond_38
.line 20
invoke-virtual {p1, v5}, Lorg/json/JSONObject;->getJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;
move-result-object v5
invoke-virtual {p0, v5}, Lio/rong/imlib/model/MessageContent;->parseJsonToUserInfo(Lorg/json/JSONObject;)Lio/rong/imlib/model/UserInfo;
move-result-object v5
invoke-virtual {p0, v5}, Lio/rong/imlib/model/MessageContent;->setUserInfo(Lio/rong/imlib/model/UserInfo;)V
.line 21
:cond_38
invoke-virtual {p1, v4}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z
move-result v5
if-eqz v5, :cond_44
.line 22
invoke-virtual {p1, v4}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;
move-result-object v4
iput-object v4, p0, Lio/rong/message/RecallNotificationMessage;->mOperatorId:Ljava/lang/String;
.line 23
:cond_44
invoke-virtual {p1, v3}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z
move-result v4
if-eqz v4, :cond_50
.line 24
invoke-virtual {p1, v3}, Lorg/json/JSONObject;->getLong(Ljava/lang/String;)J
move-result-wide v3
iput-wide v3, p0, Lio/rong/message/RecallNotificationMessage;->mRecallTime:J
.line 25
:cond_50
invoke-virtual {p1, v2}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z
move-result v3
if-eqz v3, :cond_5c
.line 26
invoke-virtual {p1, v2}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;
move-result-object v2
iput-object v2, p0, Lio/rong/message/RecallNotificationMessage;->mOriginalObjectName:Ljava/lang/String;
.line 27
:cond_5c
invoke-virtual {p1, v1}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z
move-result v2
if-eqz v2, :cond_68
.line 28
invoke-virtual {p1, v1}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;
move-result-object v1
iput-object v1, p0, Lio/rong/message/RecallNotificationMessage;->recallContent:Ljava/lang/String;
.line 29
:cond_68
invoke-virtual {p1, v0}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z
move-result v1
if-eqz v1, :cond_74
.line 30
invoke-virtual {p1, v0}, Lorg/json/JSONObject;->getLong(Ljava/lang/String;)J
move-result-wide v0
iput-wide v0, p0, Lio/rong/message/RecallNotificationMessage;->recallActionTime:J
:cond_74
const-string v0, "admin"
.line 31
invoke-virtual {p1, v0}, Lorg/json/JSONObject;->getBoolean(Ljava/lang/String;)Z
move-result v0
iput-boolean v0, p0, Lio/rong/message/RecallNotificationMessage;->mAdmin:Z
const-string v0, "delete"
.line 32
invoke-virtual {p1, v0}, Lorg/json/JSONObject;->getBoolean(Ljava/lang/String;)Z
move-result p1
iput-boolean p1, p0, Lio/rong/message/RecallNotificationMessage;->mDelete:Z
:try_end_84
.catch Lorg/json/JSONException; {:try_start_22 .. :try_end_84} :catch_85
goto :goto_8d
:catch_85
move-exception p1
.line 33
invoke-virtual {p1}, Lorg/json/JSONException;->getMessage()Ljava/lang/String;
move-result-object p1
invoke-static {v6, p1}, Lio/rong/common/RLog;->e(Ljava/lang/String;Ljava/lang/String;)I
:goto_8d
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 6
const-string v0, "RecallNotificationMessage"
.line 1
new-instance v1, Lorg/json/JSONObject;
invoke-direct {v1}, Lorg/json/JSONObject;-><init>()V
.line 2
:try_start_7
invoke-virtual {p0}, Lio/rong/imlib/model/MessageContent;->getJSONUserInfo()Lorg/json/JSONObject;
move-result-object v2
if-eqz v2, :cond_16
const-string v2, "user"
.line 3
invoke-virtual {p0}, Lio/rong/imlib/model/MessageContent;->getJSONUserInfo()Lorg/json/JSONObject;
move-result-object v3
invoke-virtual {v1, v2, v3}, Lorg/json/JSONObject;->putOpt(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
.line 4
:cond_16
invoke-virtual {p0}, Lio/rong/message/RecallNotificationMessage;->getOperatorId()Ljava/lang/String;
move-result-object v2
invoke-static {v2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v2
if-nez v2, :cond_29
const-string v2, "operatorId"
.line 5
invoke-virtual {p0}, Lio/rong/message/RecallNotificationMessage;->getOperatorId()Ljava/lang/String;
move-result-object v3
invoke-virtual {v1, v2, v3}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
:cond_29
const-string v2, "recallTime"
.line 6
invoke-virtual {p0}, Lio/rong/message/RecallNotificationMessage;->getRecallTime()J
move-result-wide v3
invoke-virtual {v1, v2, v3, v4}, Lorg/json/JSONObject;->put(Ljava/lang/String;J)Lorg/json/JSONObject;
.line 7
invoke-virtual {p0}, Lio/rong/message/RecallNotificationMessage;->getOriginalObjectName()Ljava/lang/String;
move-result-object v2
invoke-static {v2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v2
if-nez v2, :cond_45
const-string v2, "originalObjectName"
.line 8
invoke-virtual {p0}, Lio/rong/message/RecallNotificationMessage;->getOriginalObjectName()Ljava/lang/String;
move-result-object v3
invoke-virtual {v1, v2, v3}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
.line 9
:cond_45
invoke-virtual {p0}, Lio/rong/message/RecallNotificationMessage;->getRecallContent()Ljava/lang/String;
move-result-object v2
invoke-static {v2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v2
if-nez v2, :cond_58
const-string v2, "recallContent"
.line 10
invoke-virtual {p0}, Lio/rong/message/RecallNotificationMessage;->getRecallContent()Ljava/lang/String;
move-result-object v3
invoke-virtual {v1, v2, v3}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
:cond_58
const-string v2, "recallActionTime"
.line 11
invoke-virtual {p0}, Lio/rong/message/RecallNotificationMessage;->getRecallActionTime()J
move-result-wide v3
invoke-virtual {v1, v2, v3, v4}, Lorg/json/JSONObject;->put(Ljava/lang/String;J)Lorg/json/JSONObject;
const-string v2, "admin"
.line 12
invoke-virtual {p0}, Lio/rong/message/RecallNotificationMessage;->isAdmin()Z
move-result v3
invoke-virtual {v1, v2, v3}, Lorg/json/JSONObject;->put(Ljava/lang/String;Z)Lorg/json/JSONObject;
const-string v2, "delete"
.line 13
invoke-virtual {p0}, Lio/rong/message/RecallNotificationMessage;->isDelete()Z
move-result v3
invoke-virtual {v1, v2, v3}, Lorg/json/JSONObject;->put(Ljava/lang/String;Z)Lorg/json/JSONObject;
:try_end_73
.catch Lorg/json/JSONException; {:try_start_7 .. :try_end_73} :catch_74
goto :goto_7c
:catch_74
move-exception v2
.line 14
invoke-virtual {v2}, Lorg/json/JSONException;->getMessage()Ljava/lang/String;
move-result-object v2
invoke-static {v0, v2}, Lio/rong/common/RLog;->e(Ljava/lang/String;Ljava/lang/String;)I
.line 15
:goto_7c
:try_start_7c
invoke-virtual {v1}, Lorg/json/JSONObject;->toString()Ljava/lang/String;
move-result-object v1
const-string v2, "UTF-8"
invoke-virtual {v1, v2}, Ljava/lang/String;->getBytes(Ljava/lang/String;)[B
move-result-object v0
:try_end_86
.catch Ljava/io/UnsupportedEncodingException; {:try_start_7c .. :try_end_86} :catch_87
return-object v0
:catch_87
move-exception v1
const-string v2, "UnsupportedEncodingException "
.line 16
invoke-static {v0, v2, v1}, Lio/rong/common/RLog;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
const/4 v0, 0x0
return-object v0
.end method
.method public getOperatorId()Ljava/lang/String;
.registers 2
.line 1
iget-object v0, p0, Lio/rong/message/RecallNotificationMessage;->mOperatorId:Ljava/lang/String;
return-object v0
.end method
.method public getOriginalObjectName()Ljava/lang/String;
.registers 2
.line 1
iget-object v0, p0, Lio/rong/message/RecallNotificationMessage;->mOriginalObjectName:Ljava/lang/String;
return-object v0
.end method
.method public getRecallActionTime()J
.registers 3
.line 1
iget-wide v0, p0, Lio/rong/message/RecallNotificationMessage;->recallActionTime:J
return-wide v0
.end method
.method public getRecallContent()Ljava/lang/String;
.registers 2
.line 1
iget-object v0, p0, Lio/rong/message/RecallNotificationMessage;->recallContent:Ljava/lang/String;
return-object v0
.end method
.method public getRecallTime()J
.registers 3
.line 1
iget-wide v0, p0, Lio/rong/message/RecallNotificationMessage;->mRecallTime:J
return-wide v0
.end method
.method public isAdmin()Z
.registers 2
.line 1
iget-boolean v0, p0, Lio/rong/message/RecallNotificationMessage;->mAdmin:Z
return v0
.end method
.method public isDelete()Z
.registers 2
.line 1
iget-boolean v0, p0, Lio/rong/message/RecallNotificationMessage;->mDelete:Z
return v0
.end method
.method public setRecallActionTime(J)V
.registers 3
.line 1
iput-wide p1, p0, Lio/rong/message/RecallNotificationMessage;->recallActionTime:J
return-void
.end method
.method public setRecallContent(Ljava/lang/String;)V
.registers 2
.line 1
iput-object p1, p0, Lio/rong/message/RecallNotificationMessage;->recallContent:Ljava/lang/String;
return-void
.end method
.method public writeToParcel(Landroid/os/Parcel;I)V
.registers 5
.line 1
invoke-virtual {p0}, Lio/rong/imlib/model/MessageContent;->getUserInfo()Lio/rong/imlib/model/UserInfo;
move-result-object p2
invoke-static {p1, p2}, Lio/rong/common/ParcelUtils;->writeToParcel(Landroid/os/Parcel;Landroid/os/Parcelable;)V
.line 2
invoke-virtual {p0}, Lio/rong/message/RecallNotificationMessage;->getOperatorId()Ljava/lang/String;
move-result-object p2
invoke-static {p1, p2}, Lio/rong/common/ParcelUtils;->writeToParcel(Landroid/os/Parcel;Ljava/lang/String;)V
.line 3
invoke-virtual {p0}, Lio/rong/message/RecallNotificationMessage;->getRecallTime()J
move-result-wide v0
invoke-static {v0, v1}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object p2
invoke-static {p1, p2}, Lio/rong/common/ParcelUtils;->writeToParcel(Landroid/os/Parcel;Ljava/lang/Long;)V
.line 4
invoke-virtual {p0}, Lio/rong/message/RecallNotificationMessage;->getOriginalObjectName()Ljava/lang/String;
move-result-object p2
invoke-static {p1, p2}, Lio/rong/common/ParcelUtils;->writeToParcel(Landroid/os/Parcel;Ljava/lang/String;)V
.line 5
invoke-virtual {p0}, Lio/rong/message/RecallNotificationMessage;->isAdmin()Z
move-result p2
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 6
invoke-virtual {p0}, Lio/rong/message/RecallNotificationMessage;->isDelete()Z
move-result p2
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 7
invoke-virtual {p0}, Lio/rong/message/RecallNotificationMessage;->getRecallContent()Ljava/lang/String;
move-result-object p2
invoke-static {p1, p2}, Lio/rong/common/ParcelUtils;->writeToParcel(Landroid/os/Parcel;Ljava/lang/String;)V
.line 8
invoke-virtual {p0}, Lio/rong/message/RecallNotificationMessage;->getRecallActionTime()J
move-result-wide v0
invoke-static {v0, v1}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object p2
invoke-static {p1, p2}, Lio/rong/common/ParcelUtils;->writeToParcel(Landroid/os/Parcel;Ljava/lang/Long;)V
return-void
.end method