public class TIMMessageLocator
extends java.lang.Object
构造器和说明 |
---|
TIMMessageLocator() |
限定符和类型 | 方法和说明 |
---|---|
java.lang.String |
getConversationId()
获取消息定位符的会话ID(只有消息撤回通知时有效)
|
TIMConversationType |
getConversationType()
获取消息定位符的会话类型(只有消息撤回通知时有效)
|
java.lang.String |
getMsgID()
获取消息 ID
|
long |
getRand() |
long |
getSeq() |
long |
getTimestamp() |
int |
getTypeValue() |
boolean |
isRevokedMsg() |
boolean |
isSelf() |
TIMMessageLocator |
setRand(long rand)
设置要查找的消息随机码
|
TIMMessageLocator |
setSelf(boolean self)
设置要查找的消息的发送者是否是自己
|
TIMMessageLocator |
setSeq(long seq)
设置要查找的消息的序列号
|
TIMMessageLocator |
setTimestamp(long timestamp)
设置要查找的消息的时间戳
|
java.lang.String |
toString()
获取消息定位符字符串表示
|
public java.lang.String toString()
toString
在类中 java.lang.Object
public long getTimestamp()
public TIMMessageLocator setTimestamp(long timestamp)
timestamp
- 消息时间戳public long getSeq()
public TIMMessageLocator setSeq(long seq)
seq
- 消息的序列号public long getRand()
public TIMMessageLocator setRand(long rand)
rand
- 消息随机码public boolean isSelf()
public TIMMessageLocator setSelf(boolean self)
self
- true - 发送者是自己, false - 发送者不是自己public boolean isRevokedMsg()
public TIMConversationType getConversationType()
public int getTypeValue()
public java.lang.String getConversationId()
public java.lang.String getMsgID()