UserDoNotDisturbSetRequest(- {required bool enable,
- int startHour = 0,
- int startMin = 0,
- int endHour = 23,
- int endMin = 59,
- String timezone = 'UTC',
- String? userId}
)
Implementation
UserDoNotDisturbSetRequest({
required bool enable,
int startHour = 0,
int startMin = 0,
int endHour = 23,
int endMin = 59,
String timezone = 'UTC',
String? userId,
}) : super(userId: userId) {
url = 'users/${userId ?? state.userId}/push_preference';
body = {
'do_not_disturb': enable,
'start_hour': startHour,
'start_min': startMin,
'end_hour': endHour,
'end_min': endMin,
'timezone': timezone
};
}