Added Nextcloud base

This commit is contained in:
2023-02-20 10:56:51 +01:00
parent e54ae9c2ff
commit fea36b9a6d
63 changed files with 1863 additions and 700 deletions

View File

@ -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();
}