Added Nextcloud base
This commit is contained in:
@ -3,6 +3,11 @@ import 'dart:convert';
|
||||
import 'package:localstore/localstore.dart';
|
||||
|
||||
abstract class RequestCache<T> {
|
||||
static const int cacheNothing = 0;
|
||||
static const int cacheMinute = 60;
|
||||
static const int cacheHour = 60 * 60;
|
||||
static const int cacheDay = 60 * 60 * 24;
|
||||
|
||||
int maxCacheTime;
|
||||
Function(T) onUpdate;
|
||||
|
||||
@ -29,4 +34,5 @@ abstract class RequestCache<T> {
|
||||
|
||||
T onLocalData(String json);
|
||||
Future<T> onLoad();
|
||||
|
||||
}
|
Reference in New Issue
Block a user