类 EMSetOfflinePushOld
java.lang.Object
com.easemob.im.api.model.EMSetOfflinePushOld
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-02-19T14:46:11.706022+08:00[Asia/Shanghai]")
public class EMSetOfflinePushOld
extends Object
EMSetOfflinePushOld
-
嵌套类概要
嵌套类 -
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明booleanstatic EMSetOfflinePushOldCreate an instance of EMSetOfflinePushOld given an JSON string离线推送时在接收方的客户端推送通知栏中显示的发送方的昵称。离线推送通知的展示方式: -(默认)0:推送标题为“您有一条新消息”,推送内容为“请点击查看”; - 1:推送标题为“您有一条新消息”,推送内容为发送人昵称和离线消息的内容是否设置为免打扰模式: - true:是; - false:否免打扰时间段的结束时间,精确到小时,取值范围为 [0,23]。免打扰时间段的开始时间,精确到小时,取值范围为 [0,23]。inthashCode()notificationDisplayStyle(Integer notificationDisplayStyle) notificationNoDisturbing(Boolean notificationNoDisturbing) notificationNoDisturbingEnd(String notificationNoDisturbingEnd) notificationNoDisturbingStart(String notificationNoDisturbingStart) voidsetNickname(String nickname) voidsetNotificationDisplayStyle(Integer notificationDisplayStyle) voidsetNotificationNoDisturbing(Boolean notificationNoDisturbing) voidsetNotificationNoDisturbingEnd(String notificationNoDisturbingEnd) voidsetNotificationNoDisturbingStart(String notificationNoDisturbingStart) toJson()Convert an instance of EMSetOfflinePushOld to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
字段详细资料
-
SERIALIZED_NAME_NICKNAME
- 另请参阅:
-
SERIALIZED_NAME_NOTIFICATION_DISPLAY_STYLE
- 另请参阅:
-
SERIALIZED_NAME_NOTIFICATION_NO_DISTURBING
- 另请参阅:
-
SERIALIZED_NAME_NOTIFICATION_NO_DISTURBING_START
- 另请参阅:
-
SERIALIZED_NAME_NOTIFICATION_NO_DISTURBING_END
- 另请参阅:
-
openapiFields
-
openapiRequiredFields
-
-
构造器详细资料
-
EMSetOfflinePushOld
public EMSetOfflinePushOld()
-
-
方法详细资料
-
nickname
-
getNickname
离线推送时在接收方的客户端推送通知栏中显示的发送方的昵称。你可以自定义该昵称,长度不能超过 100 个字符。 支持以下字符集: - 26 个小写英文字母 a-z; - 26 个大写英文字母 A-Z; - 10 个数字 0-9; - 中文; - 特殊字符。 若不设置昵称,推送消息详情时,即设置离线推送通知的展示方式时将 notification_display_style 设置为 1,会显示发送方的用户 ID,而非昵称。 该昵称可与用户属性中的昵称设置不同,不过我们建议这两种昵称的设置保持一致。因此,修改其中一个昵称时,也需调用相应方法对另一个进行更新,确保设置一致。更新用户属性中的昵称的方法,详见 设置用户属性- 返回:
- nickname
-
setNickname
-
notificationDisplayStyle
-
getNotificationDisplayStyle
离线推送通知的展示方式: -(默认)0:推送标题为“您有一条新消息”,推送内容为“请点击查看”; - 1:推送标题为“您有一条新消息”,推送内容为发送人昵称和离线消息的内容- 返回:
- notificationDisplayStyle
-
setNotificationDisplayStyle
-
notificationNoDisturbing
-
getNotificationNoDisturbing
是否设置为免打扰模式: - true:是; - false:否- 返回:
- notificationNoDisturbing
-
setNotificationNoDisturbing
-
notificationNoDisturbingStart
-
getNotificationNoDisturbingStart
免打扰时间段的开始时间,精确到小时,取值范围为 [0,23]。例如 “8” 表示每日 8:00 开启免打扰模式- 返回:
- notificationNoDisturbingStart
-
setNotificationNoDisturbingStart
-
notificationNoDisturbingEnd
-
getNotificationNoDisturbingEnd
免打扰时间段的结束时间,精确到小时,取值范围为 [0,23]。例如 “18” 表示每日 18:00 关闭免打扰模式- 返回:
- notificationNoDisturbingEnd
-
setNotificationNoDisturbingEnd
-
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 EMSetOfflinePushOld
-
fromJson
Create an instance of EMSetOfflinePushOld given an JSON string- 参数:
jsonString- JSON string- 返回:
- An instance of EMSetOfflinePushOld
- 抛出:
IOException- if the JSON string is invalid with respect to EMSetOfflinePushOld
-
toJson
Convert an instance of EMSetOfflinePushOld to an JSON string- 返回:
- JSON string
-