2024-11-20 18:34:24 +01:00
|
|
|
part of 'service.dart';
|
|
|
|
|
|
|
|
class ServiceConfig {
|
|
|
|
static Future<bool> isProcessExifWifiOnly() async {
|
2024-11-23 16:18:23 +01:00
|
|
|
return Preference.getBool(_pref, _prefProcessWifiOnly, true).notNull();
|
2024-11-20 18:34:24 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
static Future<void> setProcessExifWifiOnly(bool flag) async {
|
|
|
|
await Preference.setBool(_pref, _prefProcessWifiOnly, flag);
|
|
|
|
}
|
|
|
|
|
2024-11-23 16:18:23 +01:00
|
|
|
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);
|
|
|
|
}
|
|
|
|
|
2024-11-20 18:34:24 +01:00
|
|
|
static const _pref = "service";
|
|
|
|
static const _prefProcessWifiOnly = "shouldProcessWifiOnly";
|
2024-11-23 16:18:23 +01:00
|
|
|
static const _prefIsEnableClientExif = "isEnableClientExif";
|
2024-11-20 18:34:24 +01:00
|
|
|
}
|