类 EMModifyTextOrCustomizeMessage

java.lang.Object
com.easemob.im.api.model.EMModifyTextOrCustomizeMessage

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-03-27T17:01:34.860826+08:00[Asia/Shanghai]") public class EMModifyTextOrCustomizeMessage extends Object
EMModifyTextOrCustomizeMessage
  • 字段详细资料

    • SERIALIZED_NAME_USER

      public static final String SERIALIZED_NAME_USER
      另请参阅:
    • SERIALIZED_NAME_NEW_MSG

      public static final String SERIALIZED_NAME_NEW_MSG
      另请参阅:
    • SERIALIZED_NAME_TYPE

      public static final String SERIALIZED_NAME_TYPE
      另请参阅:
    • SERIALIZED_NAME_NEW_EXT

      public static final String SERIALIZED_NAME_NEW_EXT
      另请参阅:
    • SERIALIZED_NAME_IS_COMBINE_EXT

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

      public static HashSet<String> openapiFields
    • openapiRequiredFields

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

    • EMModifyTextOrCustomizeMessage

      public EMModifyTextOrCustomizeMessage()
  • 方法详细资料

    • user

    • getUser

      @Nullable public String getUser()
      修改消息的用户
      返回:
      user
    • setUser

      public void setUser(String user)
    • newMsg

    • getNewMsg

      @Nonnull public EMNewMessage getNewMsg()
      Get newMsg
      返回:
      newMsg
    • setNewMsg

      public void setNewMsg(EMNewMessage newMsg)
    • type

    • getType

      @Nullable public String getType()
      消息类型: - txt:文本消息; - img:图片消息; - audio:语音消息; - video:视频消息; - file:文件消息; - loc:位置消息; - cmd:透传消息; - custom:自定义消息
      返回:
      type
    • setType

      public void setType(String type)
    • newExt

      public EMModifyTextOrCustomizeMessage newExt(Object newExt)
    • getNewExt

      @Nullable public Object getNewExt()
      修改后的消息扩展信息
      返回:
      newExt
    • setNewExt

      public void setNewExt(Object newExt)
    • isCombineExt

      public EMModifyTextOrCustomizeMessage isCombineExt(Boolean isCombineExt)
    • getIsCombineExt

      @Nullable public Boolean getIsCombineExt()
      修改后的消息扩展信息与原有扩展信息是合并还是替换。 - (默认)true:合并; - false:替换
      返回:
      isCombineExt
    • setIsCombineExt

      public void setIsCombineExt(Boolean isCombineExt)
    • 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 EMModifyTextOrCustomizeMessage
    • fromJson

      public static EMModifyTextOrCustomizeMessage fromJson(String jsonString) throws IOException
      Create an instance of EMModifyTextOrCustomizeMessage given an JSON string
      参数:
      jsonString - JSON string
      返回:
      An instance of EMModifyTextOrCustomizeMessage
      抛出:
      IOException - if the JSON string is invalid with respect to EMModifyTextOrCustomizeMessage
    • toJson

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