Set up handwashing reminders
Function table
__IDO_FUNCTABLE__.funcTable31Model.handWashReminder
Handwashing reminder model illustration
- IDOSetWashHandReminderModel
Parameter | Description | Remark |
---|---|---|
onOff | Switch | bool |
startHour | Starting time (Hour) | int |
startMinute | Starting time(Minute) | int |
endHour | End time (Hour) | int |
endMinute | End Time(Minute) | int |
repeat | Repeat set | [Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday] |
interval | Reminder interval | Unit: minute Default 60 minutes |
Command code
Objc:
IDOSetWashHandReminderModel * model = [IDOSetWashHandReminderModel currentModel];
[IDOFoundationCommand setWashHandReminderCommand:model
callback:^(int errorCode) {
if (errorCode == 0) {
//Set successfully
}else if (errorCode == 6) {
//Device not supported
}else {
//Setup failed
}
}];
Swift:
let model = IDOSetWashHandReminderModel.current();
IDOFoundationCommand.setWashHandReminder(model) { (errorCode) in
if errorCode == 0 {
//Set successfully
}else if errorCode == 6{
//Device does not support this method
}else {
//Wrong setting
}
};