1 package com.netease.nimlib.sdk.msg.model;
19 private String deleteMsgServerId;
22 private String deleteMsgClientId;
25 private long deleteMsgCreateTime;
43 this(type, from, to, deleteMsgServerId, deleteMsgClientId, deleteMsgCreateTime, 0,
"");
47 this(type, from, to, deleteMsgServerId, deleteMsgClientId, deleteMsgCreateTime, 0, ext);
54 this.deleteMsgServerId = deleteMsgServerId;
55 this.deleteMsgClientId = deleteMsgClientId;
56 this.deleteMsgCreateTime = deleteMsgCreateTime;
84 setType(property.getInteger(ITalkService.MsgDeleteSelfTag.type));
85 from =
property.get(ITalkService.MsgDeleteSelfTag.from);
86 to =
property.get(ITalkService.MsgDeleteSelfTag.to);
87 deleteMsgServerId =
property.get(ITalkService.MsgDeleteSelfTag.deleteMsgServerId);
88 deleteMsgClientId =
property.get(ITalkService.MsgDeleteSelfTag.deleteMsgClientId);
89 deleteMsgCreateTime =
property.getLong(ITalkService.MsgDeleteSelfTag.deleteMsgCreateTime);
90 time =
property.getLong(ITalkService.MsgDeleteSelfTag.time);
91 ext =
property.get(ITalkService.MsgDeleteSelfTag.ext);
111 return deleteMsgServerId;
115 this.deleteMsgServerId = deleteMsgServerId;
119 return deleteMsgClientId;
123 this.deleteMsgClientId = deleteMsgClientId;
127 return deleteMsgCreateTime;
131 this.deleteMsgCreateTime = deleteMsgCreateTime;
151 final String account = SDKCacheUI.getAccount();
152 if (account == null) {
155 return account.equals(to) ? from : to;
160 return "MsgDeleteSelfOption{" +
162 ", from='" + from +
'\'' +
163 ", to='" + to +
'\'' +
164 ", deleteMsgServerId='" + deleteMsgServerId +
'\'' +
165 ", deleteMsgClientId='" + deleteMsgClientId +
'\'' +
166 ", deleteMsgCreateTime=" + deleteMsgCreateTime +
168 ", ext='" + ext +
'\'' +
static final int SESSION_TYPE_TEAM
2表示Team
MsgDeleteSelfOption(SessionTypeEnum type, String from, String to, String deleteMsgServerId, String deleteMsgClientId, long deleteMsgCreateTime, long time, String ext)
void setType(SessionTypeEnum type)
static final int SESSION_TYPE_P2P
1表示P2P
String getDeleteMsgServerId()
MsgDeleteSelfOption(Property property)
void setFrom(String from)
MsgDeleteSelfOption(SessionTypeEnum type, String from, String to, String deleteMsgServerId, String deleteMsgClientId, long deleteMsgCreateTime, String ext)
void setDeleteMsgClientId(String deleteMsgClientId)
MsgDeleteSelfOption(SessionTypeEnum type, String from, String to, String deleteMsgServerId, String deleteMsgClientId, long deleteMsgCreateTime)
String getDeleteMsgClientId()
SessionTypeEnum getType()
void setDeleteMsgCreateTime(long deleteMsgCreateTime)
void setDeleteMsgServerId(String deleteMsgServerId)
long getDeleteMsgCreateTime()