Package io.rong.imlib.model
Class NotificationQuietHoursSetting
-
- All Implemented Interfaces:
public class NotificationQuietHoursSetting
-
-
Field Summary
Fields Modifier and Type Field Description public String
startTime
public int
spanMinutes
public String
timeZone
public IRongCoreEnum.PushNotificationQuietHoursLevel
level
public final static Creator<NotificationQuietHoursSetting>
CREATOR
-
Constructor Summary
Constructors Constructor Description NotificationQuietHoursSetting()
NotificationQuietHoursSetting(String startTime, int spanMinutes, String timeZone, IRongCoreEnum.PushNotificationQuietHoursLevel level)
-
Method Summary
Modifier and Type Method Description String
getStartTime()
获取开始时间。 void
setStartTime(String startTime)
设置开始时间。 int
getSpanMinutes()
获取间隔时间。 void
setSpanMinutes(int spanMinutes)
设置间隔时间。 String
getTimeZone()
获取时区。 void
setTimeZone(String timeZone)
设置时区。 IRongCoreEnum.PushNotificationQuietHoursLevel
getLevel()
获取免打扰级别。 void
setLevel(IRongCoreEnum.PushNotificationQuietHoursLevel level)
设置免打扰级别。 void
writeToParcel(Parcel dest, int flags)
int
describeContents()
String
toString()
-
-
Constructor Detail
-
NotificationQuietHoursSetting
NotificationQuietHoursSetting()
-
NotificationQuietHoursSetting
NotificationQuietHoursSetting(String startTime, int spanMinutes, String timeZone, IRongCoreEnum.PushNotificationQuietHoursLevel level)
-
-
Method Detail
-
getStartTime
String getStartTime()
获取开始时间。
- Returns:
起始时间 格式 HH:MM:SS。
-
setStartTime
void setStartTime(String startTime)
设置开始时间。
- Parameters:
startTime
- 起始时间 格式 HH:MM:SS。
-
getSpanMinutes
int getSpanMinutes()
获取间隔时间。
- Returns:
间隔时间,单位分钟。
-
setSpanMinutes
void setSpanMinutes(int spanMinutes)
设置间隔时间。
- Parameters:
spanMinutes
- 间隔时间,单位分钟。
-
getTimeZone
String getTimeZone()
获取时区。
- Returns:
时区,时区,区分大小写,例如 "Asia/Shanghai"。
-
setTimeZone
void setTimeZone(String timeZone)
设置时区。
- Parameters:
timeZone
- 时区,区分大小写,例如 "Asia/Shanghai",海外默认为 UTC。
-
getLevel
IRongCoreEnum.PushNotificationQuietHoursLevel getLevel()
获取免打扰级别。
- Returns:
免打扰级别。
-
setLevel
void setLevel(IRongCoreEnum.PushNotificationQuietHoursLevel level)
设置免打扰级别。
- Parameters:
level
- 免打扰级别。
-
writeToParcel
void writeToParcel(Parcel dest, int flags)
-
describeContents
int describeContents()
-
toString
String toString()
-
-
-
-