|
|
|
@@ -22,19 +22,22 @@ class Repository { |
|
|
|
|
|
|
|
Future<List<ActionType>> getActionTypes() { |
|
|
|
final client = RestClient(dio); |
|
|
|
var op = buildConfigurableCacheOptions(forceRefresh: true); |
|
|
|
var op = buildConfigurableCacheOptions( |
|
|
|
forceRefresh: true, maxAge: Duration(days: ConstCommon.kMaxAgeCache)); |
|
|
|
return client.getActionTypes(options: op); |
|
|
|
} |
|
|
|
|
|
|
|
Future<List<Harvest>> getHarvests() { |
|
|
|
final client = RestClient(dio); |
|
|
|
var op = buildConfigurableCacheOptions(forceRefresh: true); |
|
|
|
var op = buildConfigurableCacheOptions( |
|
|
|
forceRefresh: true, maxAge: Duration(days: ConstCommon.kMaxAgeCache)); |
|
|
|
return client.getHarvests(options: op); |
|
|
|
} |
|
|
|
|
|
|
|
Future<List<WaterType>> getWaterTypes() { |
|
|
|
final client = RestClient(dio); |
|
|
|
var op = buildConfigurableCacheOptions(forceRefresh: true); |
|
|
|
var op = buildConfigurableCacheOptions( |
|
|
|
forceRefresh: true, maxAge: Duration(days: ConstCommon.kMaxAgeCache)); |
|
|
|
return client.getWaterTypes(options: op); |
|
|
|
} |
|
|
|
|