类 EMSetUserGlobalMute

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

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

    • SERIALIZED_NAME_USERNAME

      public static final String SERIALIZED_NAME_USERNAME
      另请参阅:
    • 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
      另请参阅:
    • openapiFields

      public static HashSet<String> openapiFields
    • openapiRequiredFields

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

    • EMSetUserGlobalMute

      public EMSetUserGlobalMute()
  • 方法详细资料

    • username

      public EMSetUserGlobalMute username(String username)
    • getUsername

      @Nullable public String getUsername()
      设置全局禁言的用户 ID
      返回:
      username
    • setUsername

      public void setUsername(String username)
    • chat

      public EMSetUserGlobalMute chat(Integer chat)
    • getChat

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

      public void setChat(Integer chat)
    • groupchat

      public EMSetUserGlobalMute groupchat(Integer groupchat)
    • getGroupchat

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

      public void setGroupchat(Integer groupchat)
    • chatroom

      public EMSetUserGlobalMute chatroom(Integer chatroom)
    • getChatroom

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

      public void setChatroom(Integer chatroom)
    • 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 EMSetUserGlobalMute
    • fromJson

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

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