TF-548 Create package contact and base autocomplete method/response
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
import 'package:jmap_dart_client/jmap/account_id.dart';
|
||||
import 'package:jmap_dart_client/jmap/core/filter/filter.dart';
|
||||
import 'package:jmap_dart_client/jmap/core/method/method.dart';
|
||||
import 'package:jmap_dart_client/jmap/core/method/request/query_method.dart';
|
||||
|
||||
abstract class AutoCompleteMethod extends MethodRequiringAccountId
|
||||
with OptionalLimit {
|
||||
|
||||
final Filter filter;
|
||||
|
||||
AutoCompleteMethod(AccountId accountId, this.filter) : super(accountId);
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
import 'package:jmap_dart_client/jmap/account_id.dart';
|
||||
import 'package:jmap_dart_client/jmap/core/method/method_response.dart';
|
||||
import 'package:jmap_dart_client/jmap/core/unsigned_int.dart';
|
||||
|
||||
abstract class AutoCompleteResponse<T> extends ResponseRequiringAccountId {
|
||||
final List<T> list;
|
||||
final UnsignedInt? limit;
|
||||
|
||||
AutoCompleteResponse(
|
||||
AccountId accountId,
|
||||
this.list,
|
||||
this.limit,
|
||||
) : super(accountId);
|
||||
}
|
||||
Reference in New Issue
Block a user