类 EMCreateChatroomBroadcastMessage
java.lang.Object
com.easemob.im.api.model.EMCreateChatroomBroadcastMessage
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-07-29T17:16:19.382777+08:00[Asia/Shanghai]")
public class EMCreateChatroomBroadcastMessage
extends Object
EMCreateChatroomBroadcastMessage
-
嵌套类概要
嵌套类 -
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明chatroomMsgLevel(String chatroomMsgLevel) booleanCreate an instance of EMCreateChatroomBroadcastMessage given an JSON string聊天室消息优先级,仅对发送聊天室消息有效: - high:高; - (默认)normal:普通; - low:低getExt()消息支持扩展字段,可添加自定义信息。getFrom()广播消息发送方的用户 ID。getMsg()Get msginthashCode()msg(EMMessageContent msg) voidsetChatroomMsgLevel(String chatroomMsgLevel) voidvoidvoidsetMsg(EMMessageContent msg) toJson()Convert an instance of EMCreateChatroomBroadcastMessage to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
字段详细资料
-
构造器详细资料
-
EMCreateChatroomBroadcastMessage
public EMCreateChatroomBroadcastMessage()
-
-
方法详细资料
-
from
-
getFrom
广播消息发送方的用户 ID。若不传入该字段,服务器默认设置为管理员,即 “admin”;若传入字段但值为空字符串 (“”),请求失败- 返回:
- from
-
setFrom
-
msg
-
getMsg
Get msg- 返回:
- msg
-
setMsg
-
ext
-
getExt
消息支持扩展字段,可添加自定义信息。不能对该参数传入 null。同时,推送通知也支持自定义扩展字段,详见 APNs 自定义显示:https://docs-im-beta.easemob.com/document/ios/push.html#_4-%E8%AE%BE%E7%BD%AE%E7%A6%BB%E7%BA%BF%E6%8E%A8%E9%80%81 和 Android 推送字段说明:https://docs-im-beta.easemob.com/document/android/push.html#_5-%E8%A7%A3%E6%9E%90%E6%94%B6%E5%88%B0%E7%9A%84%E6%8E%A8%E9%80%81%E5%AD%97%E6%AE%B5- 返回:
- ext
-
setExt
-
chatroomMsgLevel
-
getChatroomMsgLevel
聊天室消息优先级,仅对发送聊天室消息有效: - high:高; - (默认)normal:普通; - low:低- 返回:
- chatroomMsgLevel
-
setChatroomMsgLevel
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
Validates the JSON Element and throws an exception if issues found- 参数:
jsonElement- JSON Element- 抛出:
IOException- if the JSON Element is invalid with respect to EMCreateChatroomBroadcastMessage
-
fromJson
Create an instance of EMCreateChatroomBroadcastMessage given an JSON string- 参数:
jsonString- JSON string- 返回:
- An instance of EMCreateChatroomBroadcastMessage
- 抛出:
IOException- if the JSON string is invalid with respect to EMCreateChatroomBroadcastMessage
-
toJson
Convert an instance of EMCreateChatroomBroadcastMessage to an JSON string- 返回:
- JSON string
-