mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-01-23 01:06:21 +01:00
23 lines
748 B
Dart
23 lines
748 B
Dart
part of 'service.dart';
|
|
|
|
class ServiceConfig {
|
|
static Future<bool> isProcessExifWifiOnly() async {
|
|
return Preference.getBool(_pref, _prefProcessWifiOnly, true).notNull();
|
|
}
|
|
|
|
static Future<void> setProcessExifWifiOnly(bool flag) async {
|
|
await Preference.setBool(_pref, _prefProcessWifiOnly, flag);
|
|
}
|
|
|
|
static Future<bool> isEnableClientExif() async {
|
|
return Preference.getBool(_pref, _prefIsEnableClientExif, false).notNull();
|
|
}
|
|
|
|
static Future<void> setEnableClientExif(bool flag) async {
|
|
await Preference.setBool(_pref, _prefIsEnableClientExif, flag);
|
|
}
|
|
|
|
static const _pref = "service";
|
|
static const _prefProcessWifiOnly = "shouldProcessWifiOnly";
|
|
static const _prefIsEnableClientExif = "isEnableClientExif";
|
|
}
|