1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2025-06-19 00:05:16 +00:00

Can update presence settings

This commit is contained in:
2021-04-22 15:54:30 +02:00
parent 96fb14e7de
commit da876f5978
3 changed files with 97 additions and 3 deletions

View File

@ -57,8 +57,9 @@ class ForezPresenceHelper {
/// Add a new day of presence
///
/// Throws in case of failure
static Future<void> addDay(DateTime dt) async =>
static Future<void> addDay(int groupID, DateTime dt) async =>
await ws("forez_presence/add_day", {
"group": groupID,
"year": dt.year,
"month": dt.month,
"day": dt.day,
@ -67,8 +68,9 @@ class ForezPresenceHelper {
/// Remove a new day of presence
///
/// Throws in case of failure
static Future<void> delDay(DateTime dt) async =>
static Future<void> delDay(int groupID, DateTime dt) async =>
await ws("forez_presence/del_day", {
"group": groupID,
"year": dt.year,
"month": dt.month,
"day": dt.day,