IDOAlarmModel

Properties Type Description
items List<IDOAlarmItem> IDOAlarmItem collection

IDOAlarmItem

Properties Type Description
alarmID Int Alarm ID, starting from 1, 1~10 (maximum 10)
delayMin Int How many minutes to delay
The combination of delayMin and repeatTimes is used to achieve a snooze scenario.
hour Int alarm clock clock
minute Int alarm minute
name String Alarm name, maximum 23 bytes
isOpen Bool Switch
repeats HashSet<IDOWeek> RepeatIDOWeek set
repeatTimes Int Number of times the alarm repeats
The number of times the alarm repeats, delay switch, set to 0 to turn off,
set to a certain number to repeat the number of times
The combination of delayMin and repeatTimes is used to achieve a snooze scenario.
status IDOAlarmStatus 0: Hide (delete) 1: Show -1: Invalid
type IDOAlarmType alarm type

IDOAlarmStatus

Android

enum class IDOAlarmStatus(val rawValue: Int) {
     INVALID(-1),
     HIDDEN(0),
     DISPLAYED(1);
}

iOS

public enum IDOAlarmStatus: Int {
     case invalid = -1
     case hidden = 0
     case displayed = 1
}

IDOAlarmType

Android

enum class IDOAlarmType(val rawValue: Int) {
     WAKEUP(0x00),
     SLEEP(0x01),
     EXERCISE(0x02),
     MEDICATION(0x03),
     DATE(0x04),
     GATHERING(0x05),
     MEETING(0x06),
     OTHER(0x07);
}

iOS

public enum IDOAlarmType: Int {
     case wakeUp = 0x00
     case sleep = 0x01
     case exercise = 0x02
     case medication = 0x03
     case date = 0x04
     case gathering = 0x05
     case meeting = 0x06
     case other = 0x07
}
Copyright © 2023-2024 IDO. All rights reserved. all right reserved,powered by Gitbook修改日期: 2025-01-17 11:54:27

results matching ""

    No results matching ""