add

abstract fun add(alarm: UserAlarm)

Add new alarm.

If there is alarm with same id then isAlarmsInProcessing will emit IllegalArgumentException. Use update.

API Note: User must be valid.

See also

Parameters

alarm

alarm

Throws

for unauthorized user or unprepared session

if wristband is not ready for communication

if there is no default wristband


abstract fun add(alarms: List<UserAlarm>)

Add list of new alarms.

If some of alarms was added previously or some of alarms was created not by create then isAlarmsInProcessing will emit IllegalArgumentException.

API Note: User must be valid.

See also

Parameters

alarms

list of alarms

Throws

for unauthorized user or unprepared session

if wristband is not ready for communication

if there is no default wristband