mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2024-09-10 22:07:19 +00:00
24 lines
310 B
Dart
24 lines
310 B
Dart
enum LoadingStatus {
|
|
uninitialized,
|
|
refreshing,
|
|
success,
|
|
error,
|
|
}
|
|
|
|
enum Period {
|
|
hour,
|
|
day,
|
|
month;
|
|
|
|
int get stepPeriodInSeconds {
|
|
switch (this) {
|
|
case Period.hour:
|
|
return 18;
|
|
case Period.day:
|
|
return 432;
|
|
case Period.month:
|
|
return 6480;
|
|
}
|
|
}
|
|
}
|