1 package com.netease.nimlib.sdk.msg.model;
8 import java.io.Serializable;
19 private final String fromAccount;
20 private final String toAccount;
21 private final long time;
22 private final long serverId;
23 private final String uuid;
26 this.sessionType = sessionType;
27 this.fromAccount = fromAccount;
28 this.toAccount = toAccount;
30 this.serverId = serverId;
36 this.fromAccount =
property.get(ITalkService.Tag.fromAccount);
37 this.toAccount =
property.get(ITalkService.Tag.ReceiverAccount);
38 this.time =
property.getLong(ITalkService.Tag.time);
39 this.serverId =
property.getLong(ITalkService.Tag.msgid_server);
40 this.uuid =
property.get(ITalkService.Tag.msgid_client);
71 if (fromAccount == null) {
74 if (toAccount == null) {
83 if (StringUtil.isEmpty(uuid)) {
91 return "MessageKey{" +
92 "sessionType=" + sessionType +
93 ", fromAccount='" + fromAccount +
'\'' +
94 ", toAccount='" + toAccount +
'\'' +
96 ", serverId=" + serverId +
97 ", uuid='" + uuid +
'\'' +
MessageKey(Property property)
static SessionTypeEnum typeOfValue(int value)
SessionTypeEnum getSessionType()
消息的关键信息,通过这些信息可以从服务端查询到该消息的完整部分
MessageKey(SessionTypeEnum sessionType, String fromAccount, String toAccount, long time, long serverId, String uuid)