AtContactsImpl class
Constructors
- AtContactsImpl(AtClient? atClient, String atSign, {RegexType? regexType})
Properties
Methods
-
add(
AtContact contact) → Future< bool> - returns true on success otherwise false. has to pass the AtContact to add new contact into the contact_list if atSign value is 'null' then returns false
-
addMembers(
Set< AtContact> atContacts, AtGroup? atGroup) → Future<bool> - takes Set of AtContacts as an input and Adds the contacts to the group members on success return true otherwise false
-
createGroup(
AtGroup? atGroup) → Future< AtGroup?> - takes AtGroup as an input and creates the group on success return AtGroup otherwise null
-
delete(
String atSign) → Future< bool> - takes atSign of the contact as an input and delete the contacts from the contact_list on success return true otherwise false
-
deleteContact(
AtContact contact) → Future< bool> - takes AtContact as an input and delete the contacts from the contact_list on success return true otherwise false
-
deleteGroup(
AtGroup atGroup) → Future< bool> - takes AtGroup as an input and creates the group on success return AtGroup otherwise null
-
deleteMembers(
Set< AtContact> atContacts, AtGroup? atGroup) → Future<bool> - takes Set of AtContacts as an input and deletes the contacts to the group members on success return true otherwise false
-
formGroupKey(
String groupName) → String - Created group key from the group name provided
-
get(
String atSign, {AtKey? getAtKey}) → Future< AtContact?> -
returns the
AtContact
.has to pass the 'atSign' Throws FormatException on invalid json Throws class extendingAtException
on invalid atsign. -
getGroup(
String? groupId) → Future< AtGroup?> - takes groupName as an input and get the group details on success return AtGroup otherwise null
-
getGroupsListKey(
) → String -
isMember(
AtContact atContact, AtGroup atGroup) → bool -
listActiveContacts(
) → Future< List< AtContact> > - fetch all active contacts in the list returns the list of AtContact
-
listBlockedContacts(
) → Future< List< AtContact> > - fetch all blocked contacts in the list returns the list of AtContact
-
listContacts(
) → Future< List< AtContact> > - fetch all contacts in the list returns the list of AtContact
-
listFavoriteContacts(
) → Future< List< AtContact> > - fetch all Favorite contacts in the list returns the list of AtContact
-
listGroupIds(
) → Future< List< String?> > - fetches all the group Ids as a list on success return List of Group Ids otherwise []
-
listGroupNames(
) → Future< List< String?> > - fetches all the group names as a list on success return List of Group names otherwise []
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reduceKey(
String key) → String -
toString(
) → String -
A string representation of this object.
inherited
-
update(
AtContact contact) → Future< bool> - update the existing contact
-
updateGroup(
AtGroup atGroup) → Future< AtGroup?> - takes AtGroup as an input and updates the group on success return AtGroup otherwise null
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
getInstance(
String atSign, {RegexType? regexType}) → Future< AtContactsImpl>