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:
19
lib/forez/helpers/forez_group_helper.dart
Normal file
19
lib/forez/helpers/forez_group_helper.dart
Normal 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);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user