类 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
  • 字段详细资料

    • SERIALIZED_NAME_FROM

      public static final String SERIALIZED_NAME_FROM
      另请参阅:
    • SERIALIZED_NAME_MSG

      public static final String SERIALIZED_NAME_MSG
      另请参阅:
    • SERIALIZED_NAME_EXT

      public static final String SERIALIZED_NAME_EXT
      另请参阅:
    • SERIALIZED_NAME_CHATROOM_MSG_LEVEL

      public static final String SERIALIZED_NAME_CHATROOM_MSG_LEVEL
      另请参阅:
    • openapiFields

      public static HashSet<String> openapiFields
    • openapiRequiredFields

      public static HashSet<String> openapiRequiredFields
  • 构造器详细资料

    • EMCreateChatroomBroadcastMessage

      public EMCreateChatroomBroadcastMessage()
  • 方法详细资料

    • from

    • getFrom

      @Nullable public String getFrom()
      广播消息发送方的用户 ID。若不传入该字段,服务器默认设置为管理员,即 “admin”;若传入字段但值为空字符串 (“”),请求失败
      返回:
      from
    • setFrom

      public void setFrom(String from)
    • msg

    • getMsg

      @Nonnull public EMMessageContent getMsg()
      Get msg
      返回:
      msg
    • setMsg

      public void setMsg(EMMessageContent msg)
    • ext

    • getExt

      @Nullable public Object 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

      public void setExt(Object ext)
    • chatroomMsgLevel

      public EMCreateChatroomBroadcastMessage chatroomMsgLevel(String chatroomMsgLevel)
    • getChatroomMsgLevel

      @Nullable public String getChatroomMsgLevel()
      聊天室消息优先级,仅对发送聊天室消息有效: - high:高; - (默认)normal:普通; - low:低
      返回:
      chatroomMsgLevel
    • setChatroomMsgLevel

      public void setChatroomMsgLevel(String chatroomMsgLevel)
    • equals

      public boolean equals(Object o)
      覆盖:
      equals 在类中 Object
    • hashCode

      public int hashCode()
      覆盖:
      hashCode 在类中 Object
    • toString

      public String toString()
      覆盖:
      toString 在类中 Object
    • validateJsonElement

      public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
      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

      public static EMCreateChatroomBroadcastMessage fromJson(String jsonString) throws IOException
      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

      public String toJson()
      Convert an instance of EMCreateChatroomBroadcastMessage to an JSON string
      返回:
      JSON string