Get Schedule reminder
Function table
__IDO_FUNCTABLE__.funcTable37Model.scheduleReminder
Schedule reminder model description
- IDOSetRemindItemModel
Parameter | Description | Notes |
---|---|---|
remindId | version | Schedule reminder id starts from 0 |
year | Year | int |
month | Month | int |
day | Day | int |
hour | Hour | int |
minute | Minute | int |
second | Second | int |
repeat | repeat set | array(number) [Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday] |
remindOnOff | Reminder switch of the day | bool |
state | state code | 0: Disabled, 1: Deleted state, 2: Enabled state |
title | Title | str |
note | Note | str |
- IDOSetV3ScheduleReminderModel
Parameter | Description | Notes |
---|---|---|
scVersion | Version | No assignment needed for now |
operate | Operate | 0: invalid, 1: add, 2: delete, 3: check, 4: change |
num | the number of items | int |
items | Agenda Collection | array (IDOSetRemindItemModel) Maximum set 5 data |
Command code
Objc:
[IDOFoundationCommand getScheduleReminderCommand:^(int errorCode, IDOSetV3ScheduleReminderModel * _Nullable data) {
if (errorCode == 0) {
//get success
}else if (errorCode == 6) {
//device not supported
}else {
//get failed
}
}];
Swift:
IDOFoundationCommand.getScheduleReminderCommand { (errorCode, model) in
if errorCode == 0 {
//get success
}else if errorCode == 6 {
//device not supported
}else {
//get failed.
}
};