类 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
  • 字段详细资料

    • SERIALIZED_NAME_NAME

      public static final String SERIALIZED_NAME_NAME
      另请参阅:
    • SERIALIZED_NAME_TITLE_PATTERN

      public static final String SERIALIZED_NAME_TITLE_PATTERN
      另请参阅:
    • SERIALIZED_NAME_CONTENT_PATTERN

      public static final String SERIALIZED_NAME_CONTENT_PATTERN
      另请参阅:
    • openapiFields

      public static HashSet<String> openapiFields
    • openapiRequiredFields

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

    • EMCreateOfflinePushTemplate

      public EMCreateOfflinePushTemplate()
  • 方法详细资料

    • name

      public EMCreateOfflinePushTemplate name(String name)
    • getName

      @Nullable public String getName()
      要添加的推送模板的名称。模板名称最多可包含 64 个字符,支持以下字符集: - 26 个小写英文字母 a-z; - 26 个大写英文字母 A-Z; - 10 个数字 0-9
      返回:
      name
    • setName

      public void setName(String name)
    • titlePattern

      public EMCreateOfflinePushTemplate titlePattern(String titlePattern)
    • getTitlePattern

      @Nullable public String getTitlePattern()
      自定义推送标题,例如: 标题 {0}
      返回:
      titlePattern
    • setTitlePattern

      public void setTitlePattern(String titlePattern)
    • contentPattern

      public EMCreateOfflinePushTemplate contentPattern(String contentPattern)
    • getContentPattern

      @Nullable public String getContentPattern()
      自定义推送内容,例如:内容 {0}, {1}
      返回:
      contentPattern
    • setContentPattern

      public void setContentPattern(String contentPattern)
    • 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 EMCreateOfflinePushTemplate
    • fromJson

      public static EMCreateOfflinePushTemplate fromJson(String jsonString) throws IOException
      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

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