AbstractContactRepository class abstract
ChatContacts repository interface.
- Implementers
Constructors
Properties
-
contacts
→ RxObsMap<
ChatContactId, RxChatContact> -
Returns reactive map of all RxChatContacts stored.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasNext → RxBool
-
Indicates whether the paginated have next page.
no setter
- nextLoading → RxBool
-
Indicates whether a next page of the paginated is loading.
no setter
-
paginated
→ RxObsMap<
ChatContactId, RxChatContact> -
Returns reactive map of ChatContacts in the current pagination view.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
status
→ Rx<
RxStatus> -
Returns the initialization RxStatus of this repository and its
paginated.
no setter
Methods
-
changeContactName(
ChatContactId id, UserName name) → Future< void> -
Updates
name
of the specified ChatContact in the authenticated MyUser's address book. -
createChatContact(
UserName name, UserId id) → Future< void> - Creates a new ChatContact with the specified User in the current MyUser's address book.
-
deleteContact(
ChatContactId id) → Future< void> - Deletes the specified ChatContact from the authenticated MyUser's address book.
-
favoriteChatContact(
ChatContactId id, ChatContactFavoritePosition? position) → Future< void> - Marks the specified ChatContact as favorited for the authenticated MyUser and sets its position in the favorites list.
-
get(
ChatContactId id) → FutureOr< RxChatContact?> -
Returns a ChatContact by the provided
id
. -
next(
) → Future< void> - Fetches the next paginated page.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
search(
{UserName? name, UserEmail? email, UserPhone? phone}) → Paginated< ChatContactId, RxChatContact> - Searches ChatContacts by the given criteria.
-
toString(
) → String -
A string representation of this object.
inherited
-
unfavoriteChatContact(
ChatContactId id) → Future< void> - Removes the specified ChatContact from the favorites list of the authenticated MyUser.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited