From 3340a1e5405fc315f1ce54981f269caa20104203 Mon Sep 17 00:00:00 2001 From: Christian Pauly Date: Thu, 31 Dec 2020 10:25:54 +0100 Subject: [PATCH] refactor: Remove markedunread --- lib/matrix_api_lite.dart | 1 - lib/src/model/marked_unread.dart | 43 -------------------------------- 2 files changed, 44 deletions(-) delete mode 100644 lib/src/model/marked_unread.dart diff --git a/lib/matrix_api_lite.dart b/lib/matrix_api_lite.dart index ce3ff7df..d90c0a1b 100644 --- a/lib/matrix_api_lite.dart +++ b/lib/matrix_api_lite.dart @@ -33,7 +33,6 @@ export 'src/model/filter.dart'; export 'src/model/keys_query_response.dart'; export 'src/model/login_response.dart'; export 'src/model/login_types.dart'; -export 'src/model/marked_unread.dart'; export 'src/model/matrix_connection_exception.dart'; export 'src/model/matrix_event.dart'; export 'src/model/matrix_exception.dart'; diff --git a/lib/src/model/marked_unread.dart b/lib/src/model/marked_unread.dart deleted file mode 100644 index c3223c78..00000000 --- a/lib/src/model/marked_unread.dart +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Famedly Matrix SDK - * Copyright (C) 2019, 2020 Famedly GmbH - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -mixin EventType { - static const String MarkedUnread = 'com.famedly.marked_unread'; -} - -class MarkedUnread { - bool unread; - - MarkedUnread(this.unread); - - MarkedUnread.fromJson(Map json) { - if (!(json['unread'] is bool)) { - unread = false; - } else { - unread = json['unread']; - } - } - - Map toJson() { - final data = {}; - if (unread != null) { - data['unread'] = unread; - } - return data; - } -}