类 EMUserGlobalMuteResource

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-01-25T14:51:53.998371+08:00[Asia/Shanghai]") public class EMUserGlobalMuteResource extends Object
EMUserGlobalMuteResource
  • 字段详细资料

    • SERIALIZED_NAME_USERID

      public static final String SERIALIZED_NAME_USERID
      另请参阅:
    • SERIALIZED_NAME_CHAT

      public static final String SERIALIZED_NAME_CHAT
      另请参阅:
    • SERIALIZED_NAME_GROUPCHAT

      public static final String SERIALIZED_NAME_GROUPCHAT
      另请参阅:
    • SERIALIZED_NAME_CHATROOM

      public static final String SERIALIZED_NAME_CHATROOM
      另请参阅:
    • SERIALIZED_NAME_UNIXTIME

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

      public static HashSet<String> openapiFields
    • openapiRequiredFields

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

    • EMUserGlobalMuteResource

      public EMUserGlobalMuteResource()
  • 方法详细资料

    • userid

      public EMUserGlobalMuteResource userid(String userid)
    • getUserid

      @Nullable public String getUserid()
      设置禁言的用户 ID
      返回:
      userid
    • setUserid

      public void setUserid(String userid)
    • chat

      public EMUserGlobalMuteResource chat(Integer chat)
    • getChat

      @Nullable public Integer getChat()
      单聊剩余禁言时间,单位为秒。最大值为 2147483647。 - > 0:该用户 ID 剩余的单聊禁言时长。 - 0:该用户的单聊消息禁言已取消。 - -1:该用户被设置永久单聊消息禁言。
      返回:
      chat
    • setChat

      public void setChat(Integer chat)
    • groupchat

      public EMUserGlobalMuteResource groupchat(Integer groupchat)
    • getGroupchat

      @Nullable public Integer getGroupchat()
      群组消息剩余禁言时长,单位为秒,规则同单聊禁言
      返回:
      groupchat
    • setGroupchat

      public void setGroupchat(Integer groupchat)
    • chatroom

      public EMUserGlobalMuteResource chatroom(Integer chatroom)
    • getChatroom

      @Nullable public Integer getChatroom()
      聊天室消息剩余禁言时长,单位为秒,规则同单聊禁言
      返回:
      chatroom
    • setChatroom

      public void setChatroom(Integer chatroom)
    • unixtime

      public EMUserGlobalMuteResource unixtime(Integer unixtime)
    • getUnixtime

      @Nullable public Integer getUnixtime()
      当前操作的 Unix 时间戳
      返回:
      unixtime
    • setUnixtime

      public void setUnixtime(Integer unixtime)
    • 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 EMUserGlobalMuteResource
    • fromJson

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

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