Add presentation layer for mailbox, mail, message
This commit is contained in:
+1
-9
@@ -1,11 +1,3 @@
|
||||
# model
|
||||
|
||||
A model module contains entities
|
||||
|
||||
## Getting Started
|
||||
|
||||
For help getting started with Flutter, view our online
|
||||
[documentation](https://flutter.dev/).
|
||||
|
||||
For instructions integrating Flutter modules to your existing applications,
|
||||
see the [add-to-app documentation](https://flutter.dev/docs/development/add-to-app).
|
||||
A model module contains entities
|
||||
@@ -1,17 +0,0 @@
|
||||
|
||||
import 'package:equatable/equatable.dart';
|
||||
|
||||
class PresentationMail with EquatableMixin {
|
||||
|
||||
final String id;
|
||||
final String? message;
|
||||
|
||||
PresentationMail(this.id, {this.message});
|
||||
|
||||
factory PresentationMail.createMailEmpty() {
|
||||
return PresentationMail('empty');
|
||||
}
|
||||
|
||||
@override
|
||||
List<Object?> get props => [id, message];
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
|
||||
import 'package:equatable/equatable.dart';
|
||||
|
||||
class PresentationThread with EquatableMixin {
|
||||
|
||||
final String id;
|
||||
final String? message;
|
||||
|
||||
PresentationThread(this.id, {this.message});
|
||||
|
||||
factory PresentationThread.createThreadEmpty() {
|
||||
return PresentationThread('empty');
|
||||
}
|
||||
|
||||
@override
|
||||
List<Object?> get props => [id, message];
|
||||
}
|
||||
@@ -14,4 +14,4 @@ export 'mailbox/select_mode.dart';
|
||||
export 'mailbox/expand_mode.dart';
|
||||
|
||||
// Mail
|
||||
export 'mail/presentation_mail.dart';
|
||||
export 'mail/presentation_thread.dart';
|
||||
|
||||
+1
-1
@@ -38,7 +38,7 @@ dependencies:
|
||||
jmap_dart_client:
|
||||
git:
|
||||
url: git://github.com/hoangdat/jmap-dart-client.git
|
||||
ref: serialize
|
||||
ref: get_session_dat
|
||||
|
||||
dev_dependencies:
|
||||
flutter_test:
|
||||
|
||||
Reference in New Issue
Block a user