public class LCIMMessageOption extends Object
Modifier and Type | Class and Description |
---|---|
static class |
LCIMMessageOption.MessagePriority
消息优先级的枚举,仅针对聊天室有效
|
Constructor and Description |
---|
LCIMMessageOption() |
Modifier and Type | Method and Description |
---|---|
LCIMMessageOption.MessagePriority |
getPriority() |
String |
getPushData() |
boolean |
isReceipt() |
boolean |
isTransient() |
boolean |
isWill() |
static LCIMMessageOption |
parseJSONString(String content) |
void |
setPriority(LCIMMessageOption.MessagePriority priority) |
void |
setPushData(String pushData) |
void |
setPushDataEx(Map<String,Object> data) |
void |
setReceipt(boolean receipt) |
void |
setTransient(boolean isTransient) |
void |
setWill(boolean will)
设置该消息是否为下线通知消息
|
String |
toJSONString() |
public String toJSONString()
public static LCIMMessageOption parseJSONString(String content)
public void setPriority(LCIMMessageOption.MessagePriority priority)
public LCIMMessageOption.MessagePriority getPriority()
public boolean isTransient()
public void setTransient(boolean isTransient)
public boolean isReceipt()
public void setReceipt(boolean receipt)
public String getPushData()
public void setPushData(String pushData)
public boolean isWill()
public void setWill(boolean will)
will
- 若为 true 的话,则为下线通知消息Copyright © 2020, 美味书签(北京)信息技术有限公司 All rights reserved.