[+] Add /family/add_alarm API

This commit is contained in:
Hykilpikonna
2021-01-26 17:38:42 -05:00
parent dea555d5c2
commit 98025265a8
+17 -3
View File
@@ -130,9 +130,9 @@ class APIs
- newPin: New admin pin
## Returns
Success or not
Updated family object
*/
static let familyChangePin = API<String>(loc: "/family/update_pin")
static let familyChangePin = API<Family>(loc: "/family/update_pin")
/**
Family-related action
@@ -143,10 +143,24 @@ class APIs
- action: Join / Leave / Delete
## Returns
Family object or success message
Family object
*/
static let familyAction = API<Family>(loc: "/family/action")
/**
Add alarm to a family member
## Parameters (Besides from username and password)
- fid: Family ID
- pin: Admin pin
- to: Family member's username
- alarm: Alarm json
## Returns
Success message
*/
static let familyAddAlarm = API<String>(loc: "/family/add_alarm")
private init() {}
}