chatContacts method
- int? first,
- ChatContactsCursor? after,
- int? last,
- ChatContactsCursor? before,
- bool noFavorite = false,
Returns address book of the authenticated MyUser ordered alphabetically by ChatContact names.
Use the noFavorite
argument to exclude favorite ChatContacts from the
returned result.
Authentication
Mandatory.
Pagination
It's allowed to specify both first
and last
at the same time, provided
that after
and before
cursors are equal. In such case the returned
page will include the ChatContact pointed by the cursor and the
requested count of ChatContacts preceding and following it.
If it's desired to receive the ChatContact pointed by the cursor without
querying in both directions, one can specify first
or last
count as
0
.
Implementation
Future<Contacts$Query$ChatContacts> chatContacts({
int? first,
ChatContactsCursor? after,
int? last,
ChatContactsCursor? before,
bool noFavorite = false,
}) async {
throw UnimplementedError();
// Log.debug(
// 'chatContacts($first, $after, $last, $before, $noFavorite)',
// '$runtimeType',
// );
// final variables = ContactsArguments(
// first: first,
// last: last,
// before: before,
// after: after,
// noFavorite: noFavorite,
// );
// final QueryResult result = await client.query(
// QueryOptions(
// operationName: 'Contacts',
// document: ContactsQuery(variables: variables).document,
// variables: variables.toJson(),
// ),
// );
// return Contacts$Query.fromJson(result.data!).chatContacts;
}