类 EMSetReaction

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-02-19T14:46:11.706022+08:00[Asia/Shanghai]") public class EMSetReaction extends Object
EMSetReaction
  • 字段详细资料

    • SERIALIZED_NAME_MSG_ID

      public static final String SERIALIZED_NAME_MSG_ID
      另请参阅:
    • SERIALIZED_NAME_MESSAGE

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

      public static HashSet<String> openapiFields
    • openapiRequiredFields

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

    • EMSetReaction

      public EMSetReaction()
  • 方法详细资料

    • msgId

      public EMSetReaction msgId(String msgId)
    • getMsgId

      @Nullable public String getMsgId()
      消息 ID
      返回:
      msgId
    • setMsgId

      public void setMsgId(String msgId)
    • message

      public EMSetReaction message(String message)
    • getMessage

      @Nullable public String getMessage()
      表情 ID。长度不能超过 128 个字符,必须与客户端的设置一致。该参数对支持的字符集类型没有限制,若使用特殊字符,获取和删除 Reaction 时需对特殊字符进行 URL 编码
      返回:
      message
    • setMessage

      public void setMessage(String message)
    • 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 EMSetReaction
    • fromJson

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

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