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:
@ -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,
|
||||
|
Reference in New Issue
Block a user