类 EMCreateOfflinePushTemplate
java.lang.Object
com.easemob.im.api.model.EMCreateOfflinePushTemplate
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-02-19T14:46:11.706022+08:00[Asia/Shanghai]")
public class EMCreateOfflinePushTemplate
extends Object
EMCreateOfflinePushTemplate
-
嵌套类概要
嵌套类 -
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明contentPattern(String contentPattern) booleanstatic EMCreateOfflinePushTemplateCreate an instance of EMCreateOfflinePushTemplate given an JSON string自定义推送内容,例如:内容 {0}, {1}getName()要添加的推送模板的名称。自定义推送标题,例如: 标题 {0}inthashCode()voidsetContentPattern(String contentPattern) voidvoidsetTitlePattern(String titlePattern) titlePattern(String titlePattern) toJson()Convert an instance of EMCreateOfflinePushTemplate to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
字段详细资料
-
构造器详细资料
-
EMCreateOfflinePushTemplate
public EMCreateOfflinePushTemplate()
-
-
方法详细资料
-
name
-
getName
要添加的推送模板的名称。模板名称最多可包含 64 个字符,支持以下字符集: - 26 个小写英文字母 a-z; - 26 个大写英文字母 A-Z; - 10 个数字 0-9- 返回:
- name
-
setName
-
titlePattern
-
getTitlePattern
自定义推送标题,例如: 标题 {0}- 返回:
- titlePattern
-
setTitlePattern
-
contentPattern
-
getContentPattern
自定义推送内容,例如:内容 {0}, {1}- 返回:
- contentPattern
-
setContentPattern
-
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 EMCreateOfflinePushTemplate
-
fromJson
Create an instance of EMCreateOfflinePushTemplate given an JSON string- 参数:
jsonString- JSON string- 返回:
- An instance of EMCreateOfflinePushTemplate
- 抛出:
IOException- if the JSON string is invalid with respect to EMCreateOfflinePushTemplate
-
toJson
Convert an instance of EMCreateOfflinePushTemplate to an JSON string- 返回:
- JSON string
-