ChatSilentModeParam.silentModeInterval constructor

ChatSilentModeParam.silentModeInterval({
  1. required ChatSilentModeTime? startTime,
  2. required ChatSilentModeTime? endTime,
})

~english Set the start time of offline push DND, you need to create the start time and end time together.

Param startTime Do not disturb start time.

Param endTime Do not disturb end time. ~end

~chinese 设置离线推送免打扰的开始时间,需要同时创建开始时间和结束时间。

Param startTime 免扰乱开始时间。

Param endTime 免扰乱结束时间。 ~end

Implementation

ChatSilentModeParam.silentModeInterval({
  required this.startTime,
  required this.endTime,
})  : this.silentDuration = null,
      this.remindType = null,
      this._paramType = ChatSilentModeParamType.SILENT_MODE_INTERVAL;