Added enable disable lists and delete lists

This commit is contained in:
Juan Gilsanz Polo 2023-11-18 22:58:27 +01:00
parent b6bf2d80c7
commit b8b34f7f47
10 changed files with 739 additions and 26 deletions

View file

@ -1,6 +1,6 @@
class Filtering {
final List<Filter> filters;
final List<Filter> whitelistFilters;
List<Filter> filters;
List<Filter> whitelistFilters;
List<String> userRules;
List<String> blockedServices;
int interval;
@ -40,7 +40,7 @@ class Filter {
final DateTime? lastUpdated;
final int id;
final int rulesCount;
final bool enabled;
bool enabled;
Filter({
required this.url,
@ -69,3 +69,13 @@ class Filter {
"enabled": enabled,
};
}
class ProcessedList {
final Filter list;
final bool successful;
const ProcessedList({
required this.list,
required this.successful
});
}