类 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
-
嵌套类概要
嵌套类 -
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明booleanstatic EMSetUserGlobalMuteCreate an instance of EMSetUserGlobalMute given an JSON stringgetChat()单聊禁言时长,单位为秒,最大值为 2147483647。聊天室禁言时长,单位为秒,规则同单聊禁言群组禁言时长,单位为秒,规则同单聊禁言设置全局禁言的用户 IDinthashCode()voidvoidsetChatroom(Integer chatroom) voidsetGroupchat(Integer groupchat) voidsetUsername(String username) toJson()Convert an instance of EMSetUserGlobalMute to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
字段详细资料
-
构造器详细资料
-
EMSetUserGlobalMute
public EMSetUserGlobalMute()
-
-
方法详细资料
-
username
-
getUsername
设置全局禁言的用户 ID- 返回:
- username
-
setUsername
-
chat
-
getChat
单聊禁言时长,单位为秒,最大值为 2147483647。 - > 0:该用户 ID 的单聊禁言时长。 - 0:取消该用户的单聊禁言。 - -1:该用户被设置永久单聊禁言。 - 其他负值无效。- 返回:
- chat
-
setChat
-
groupchat
-
getGroupchat
群组禁言时长,单位为秒,规则同单聊禁言- 返回:
- groupchat
-
setGroupchat
-
chatroom
-
getChatroom
聊天室禁言时长,单位为秒,规则同单聊禁言- 返回:
- chatroom
-
setChatroom
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
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
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
Convert an instance of EMSetUserGlobalMute to an JSON string- 返回:
- JSON string
-