refactor: Remove markedunread

This commit is contained in:
Christian Pauly 2020-12-31 10:25:54 +01:00
parent 62d36c2c39
commit 3340a1e540
2 changed files with 0 additions and 44 deletions

View File

@ -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';

View File

@ -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 <https://www.gnu.org/licenses/>.
*/
mixin EventType {
static const String MarkedUnread = 'com.famedly.marked_unread';
}
class MarkedUnread {
bool unread;
MarkedUnread(this.unread);
MarkedUnread.fromJson(Map<String, dynamic> json) {
if (!(json['unread'] is bool)) {
unread = false;
} else {
unread = json['unread'];
}
}
Map<String, dynamic> toJson() {
final data = <String, dynamic>{};
if (unread != null) {
data['unread'] = unread;
}
return data;
}
}