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

Can request to join a Forez group

This commit is contained in:
2021-04-23 19:32:34 +02:00
parent 0cd6ed284b
commit d178e8b1c3
8 changed files with 122 additions and 23 deletions

View File

@ -0,0 +1,19 @@
import 'package:comunic/helpers/preferences_helper.dart';
/// Forez group helper
///
/// Contains the ID of the currently selected Forez group
///
/// @author Pierre Hubert
class ForezGroupHelper {
static Future<void> setId(int groupID) async {
(await PreferencesHelper.getInstance())
.setInt(PreferencesKeyList.FOREZ_GROUP, groupID);
}
static Future<int> getId() async {
return (await PreferencesHelper.getInstance())
.getInt(PreferencesKeyList.FOREZ_GROUP);
}
}