Function to work with common and personal contact lists of users.

 

Common contact list

mAddUserToCommonContacts

add a user to the common contact list;

mCommonContactsRebuild

rebuild cache of the common tree-like contact list and send it to all clients;

mDeleteUserFromCommonContacts

delete a user from the common contact list;

mGetDepartmentIDByTextPath

get the identifier of a group (in which a user exists) by full path name in the common contact list;

mGetDepartmentTextPathByID

full path from a root to a group in the common contact list by the identifier;

mGetUserDepartmentID

identifier of a group (in which a user exists) in the common contact list;

mGetUserDepartmentName

get a user's group name in the common contact list;

mMoveUserToDepartment

move a user from one group of the common contact list to another group.

 

 

Personal contact list

mPersonalContactsAddGroup

create a new group in the personal contact list;

mPersonalContactsAddUser

add a user in the personal contact list in existing or new group;

mPersonalContactsAddUsers

add several users to a personal contact list;

mPersonalContactsClear

completely delete the personal contact list of a user;

mPersonalContactsDeleteUser

delete a user from another person's contact list;

mPersonalContactsIsEmpty

check if a specified personal contact list is empty;

mPersonalContactsIsGroupExists

check if a group with a specified name exists in a user's personal contact list;

mPersonalContactsIsUserExists

check if a user is in another person's personal contact list;

mPersonalContactsRefresh

send to an online user his updated contact list.