类 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
-
嵌套类概要
嵌套类 -
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明booleanstatic EMUserGlobalMuteResourceCreate an instance of EMUserGlobalMuteResource given an JSON stringgetChat()单聊剩余禁言时间,单位为秒。聊天室消息剩余禁言时长,单位为秒,规则同单聊禁言群组消息剩余禁言时长,单位为秒,规则同单聊禁言当前操作的 Unix 时间戳设置禁言的用户 IDinthashCode()voidvoidsetChatroom(Integer chatroom) voidsetGroupchat(Integer groupchat) voidsetUnixtime(Integer unixtime) voidtoJson()Convert an instance of EMUserGlobalMuteResource to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
字段详细资料
-
构造器详细资料
-
EMUserGlobalMuteResource
public EMUserGlobalMuteResource()
-
-
方法详细资料
-
userid
-
getUserid
设置禁言的用户 ID- 返回:
- userid
-
setUserid
-
chat
-
getChat
单聊剩余禁言时间,单位为秒。最大值为 2147483647。 - > 0:该用户 ID 剩余的单聊禁言时长。 - 0:该用户的单聊消息禁言已取消。 - -1:该用户被设置永久单聊消息禁言。- 返回:
- chat
-
setChat
-
groupchat
-
getGroupchat
群组消息剩余禁言时长,单位为秒,规则同单聊禁言- 返回:
- groupchat
-
setGroupchat
-
chatroom
-
getChatroom
聊天室消息剩余禁言时长,单位为秒,规则同单聊禁言- 返回:
- chatroom
-
setChatroom
-
unixtime
-
getUnixtime
当前操作的 Unix 时间戳- 返回:
- unixtime
-
setUnixtime
-
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 EMUserGlobalMuteResource
-
fromJson
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
Convert an instance of EMUserGlobalMuteResource to an JSON string- 返回:
- JSON string
-