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

    • SERIALIZED_NAME_NICKNAME

      public static final String SERIALIZED_NAME_NICKNAME
      另请参阅:
    • SERIALIZED_NAME_NOTIFICATION_DISPLAY_STYLE

      public static final String SERIALIZED_NAME_NOTIFICATION_DISPLAY_STYLE
      另请参阅:
    • SERIALIZED_NAME_NOTIFICATION_NO_DISTURBING

      public static final String SERIALIZED_NAME_NOTIFICATION_NO_DISTURBING
      另请参阅:
    • SERIALIZED_NAME_NOTIFICATION_NO_DISTURBING_START

      public static final String SERIALIZED_NAME_NOTIFICATION_NO_DISTURBING_START
      另请参阅:
    • SERIALIZED_NAME_NOTIFICATION_NO_DISTURBING_END

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

      public static HashSet<String> openapiFields
    • openapiRequiredFields

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

    • EMSetOfflinePushOld

      public EMSetOfflinePushOld()
  • 方法详细资料

    • nickname

      public EMSetOfflinePushOld nickname(String nickname)
    • getNickname

      @Nullable public String getNickname()
      离线推送时在接收方的客户端推送通知栏中显示的发送方的昵称。你可以自定义该昵称,长度不能超过 100 个字符。 支持以下字符集: - 26 个小写英文字母 a-z; - 26 个大写英文字母 A-Z; - 10 个数字 0-9; - 中文; - 特殊字符。 若不设置昵称,推送消息详情时,即设置离线推送通知的展示方式时将 notification_display_style 设置为 1,会显示发送方的用户 ID,而非昵称。 该昵称可与用户属性中的昵称设置不同,不过我们建议这两种昵称的设置保持一致。因此,修改其中一个昵称时,也需调用相应方法对另一个进行更新,确保设置一致。更新用户属性中的昵称的方法,详见 设置用户属性
      返回:
      nickname
    • setNickname

      public void setNickname(String nickname)
    • notificationDisplayStyle

      public EMSetOfflinePushOld notificationDisplayStyle(Integer notificationDisplayStyle)
    • getNotificationDisplayStyle

      @Nullable public Integer getNotificationDisplayStyle()
      离线推送通知的展示方式: -(默认)0:推送标题为“您有一条新消息”,推送内容为“请点击查看”; - 1:推送标题为“您有一条新消息”,推送内容为发送人昵称和离线消息的内容
      返回:
      notificationDisplayStyle
    • setNotificationDisplayStyle

      public void setNotificationDisplayStyle(Integer notificationDisplayStyle)
    • notificationNoDisturbing

      public EMSetOfflinePushOld notificationNoDisturbing(Boolean notificationNoDisturbing)
    • getNotificationNoDisturbing

      @Nullable public Boolean getNotificationNoDisturbing()
      是否设置为免打扰模式: - true:是; - false:否
      返回:
      notificationNoDisturbing
    • setNotificationNoDisturbing

      public void setNotificationNoDisturbing(Boolean notificationNoDisturbing)
    • notificationNoDisturbingStart

      public EMSetOfflinePushOld notificationNoDisturbingStart(String notificationNoDisturbingStart)
    • getNotificationNoDisturbingStart

      @Nullable public String getNotificationNoDisturbingStart()
      免打扰时间段的开始时间,精确到小时,取值范围为 [0,23]。例如 “8” 表示每日 8:00 开启免打扰模式
      返回:
      notificationNoDisturbingStart
    • setNotificationNoDisturbingStart

      public void setNotificationNoDisturbingStart(String notificationNoDisturbingStart)
    • notificationNoDisturbingEnd

      public EMSetOfflinePushOld notificationNoDisturbingEnd(String notificationNoDisturbingEnd)
    • getNotificationNoDisturbingEnd

      @Nullable public String getNotificationNoDisturbingEnd()
      免打扰时间段的结束时间,精确到小时,取值范围为 [0,23]。例如 “18” 表示每日 18:00 关闭免打扰模式
      返回:
      notificationNoDisturbingEnd
    • setNotificationNoDisturbingEnd

      public void setNotificationNoDisturbingEnd(String notificationNoDisturbingEnd)
    • 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 EMSetOfflinePushOld
    • fromJson

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

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