类 EMReactionResource

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

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

    • SERIALIZED_NAME_REACTION_ID

      public static final String SERIALIZED_NAME_REACTION_ID
      另请参阅:
    • SERIALIZED_NAME_REACTION

      public static final String SERIALIZED_NAME_REACTION
      另请参阅:
    • SERIALIZED_NAME_COUNT

      public static final String SERIALIZED_NAME_COUNT
      另请参阅:
    • SERIALIZED_NAME_STATE

      public static final String SERIALIZED_NAME_STATE
      另请参阅:
    • SERIALIZED_NAME_USER_LIST

      public static final String SERIALIZED_NAME_USER_LIST
      另请参阅:
    • SERIALIZED_NAME_CURSOR

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

      public static HashSet<String> openapiFields
    • openapiRequiredFields

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

    • EMReactionResource

      public EMReactionResource()
  • 方法详细资料

    • reactionId

      public EMReactionResource reactionId(String reactionId)
    • getReactionId

      @Nullable public String getReactionId()
      Reaction ID
      返回:
      reactionId
    • setReactionId

      public void setReactionId(String reactionId)
    • reaction

      public EMReactionResource reaction(String reaction)
    • getReaction

      @Nullable public String getReaction()
      表情 ID,与客户端一致。该参数与创建/追加 Reaction API的请求参数 message 相同
      返回:
      reaction
    • setReaction

      public void setReaction(String reaction)
    • count

      public EMReactionResource count(Integer count)
    • getCount

      @Nullable public Integer getCount()
      添加该 Reaction 的用户人数
      返回:
      count
    • setCount

      public void setCount(Integer count)
    • state

      public EMReactionResource state(Boolean state)
    • getState

      @Nullable public Boolean getState()
      当前请求用户是否添加过该 Reaction: - true:是 - false:否
      返回:
      state
    • setState

      public void setState(Boolean state)
    • userList

      public EMReactionResource userList(List<String> userList)
    • addUserListItem

      public EMReactionResource addUserListItem(String userListItem)
    • getUserList

      @Nullable public List<String> getUserList()
      添加 Reaction 的用户 ID 列表。只返回最早操作 Reaction 的三个用户的 ID
      返回:
      userList
    • setUserList

      public void setUserList(List<String> userList)
    • cursor

      public EMReactionResource cursor(String cursor)
    • getCursor

      @Nullable public String getCursor()
      查询游标,指定下次查询的起始位置
      返回:
      cursor
    • setCursor

      public void setCursor(String cursor)
    • 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 EMReactionResource
    • fromJson

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

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