TF-60 Add domain get device contact suggestion
This commit is contained in:
+4
-4
@@ -1,20 +1,20 @@
|
||||
import 'package:core/core.dart';
|
||||
import 'package:jmap_dart_client/jmap/mail/email/email_address.dart';
|
||||
|
||||
class SearchEmailAddressSuccess extends UIState {
|
||||
class GetAutoCompleteSuccess extends UIState {
|
||||
|
||||
final List<EmailAddress> listEmailAddress;
|
||||
|
||||
SearchEmailAddressSuccess(this.listEmailAddress);
|
||||
GetAutoCompleteSuccess(this.listEmailAddress);
|
||||
|
||||
@override
|
||||
List<Object?> get props => [listEmailAddress];
|
||||
}
|
||||
|
||||
class SearchEmailAddressFailure extends FeatureFailure {
|
||||
class GetAutoCompleteFailure extends FeatureFailure {
|
||||
final exception;
|
||||
|
||||
SearchEmailAddressFailure(this.exception);
|
||||
GetAutoCompleteFailure(this.exception);
|
||||
|
||||
@override
|
||||
List<Object> get props => [exception];
|
||||
@@ -0,0 +1,21 @@
|
||||
|
||||
import 'package:core/core.dart';
|
||||
import 'package:model/model.dart';
|
||||
|
||||
class GetDeviceContactSuggestionsSuccess extends UIState {
|
||||
final List<Contact> results;
|
||||
|
||||
GetDeviceContactSuggestionsSuccess(this.results);
|
||||
|
||||
@override
|
||||
List<Object> get props => [results];
|
||||
}
|
||||
|
||||
class GetDeviceContactSuggestionsFailure extends FeatureFailure {
|
||||
final exception;
|
||||
|
||||
GetDeviceContactSuggestionsFailure(this.exception);
|
||||
|
||||
@override
|
||||
List<Object> get props => [exception];
|
||||
}
|
||||
Reference in New Issue
Block a user