Easemob Windows SDK
|
Public Member Functions | |
virtual void | registerContactListener (EMContactListener *listener)=0 |
register contact status change listener More... | |
virtual void | removeContactListener (EMContactListener *listener)=0 |
remove registration of contact status change listener More... | |
virtual std::vector< std::string > | allContacts (EMError &error)=0 |
retrieve current user's friend list from server. More... | |
virtual std::vector< std::string > | getContactsFromServer (EMError &error)=0 |
retrieve current user's friend list from server. More... | |
virtual std::vector< std::string > | getContactsFromDB (EMError &error)=0 |
retrieve current user's friend list from local database. More... | |
virtual void | inviteContact (const std::string &username, const std::string &message, EMError &error)=0 |
invite contact to be friend, need contact accept. More... | |
virtual void | deleteContact (const std::string &username, EMError &error)=0 |
delete contact from contact list. contact part will auto be removed friend relationship. More... | |
virtual void | acceptInvitation (const std::string &username, EMError &error)=0 |
accept contact's invitation More... | |
virtual void | declineInvitation (const std::string &username, EMError &error)=0 |
decline contact's invitation More... | |
virtual std::vector< std::string > | blacklist (EMError &error)=0 |
retrieve black list from memory More... | |
virtual std::vector< std::string > | getBlackListFromServer (EMError &error)=0 |
retrieve black list from server More... | |
virtual std::vector< std::string > | getBlackListFromDB (EMError &error)=0 |
retrieve black list from local database More... | |
virtual void | saveBlackList (const std::vector< std::string > &blacklist, EMError &error)=0 |
save black list. More... | |
virtual void | addToBlackList (std::string username, bool both, EMError &error)=0 |
add contact to blacklist More... | |
virtual void | removeFromBlackList (std::string username, EMError &error)=0 |
remove contact from black list More... | |
|
pure virtual |
accept contact's invitation
username | contact who initiate invitation. |
|
pure virtual |
add contact to blacklist
Note: sync operation new item will updated to remote server, and also update local database.
username | contact to be added to blacklist |
both | whether both side will be blocked, if true user also can not subscribe contact's presense. both = false is not work yet, current behaviour is both side conmunication will be blocded. |
|
pure virtual |
retrieve current user's friend list from server.
|
pure virtual |
retrieve black list from memory
|
pure virtual |
decline contact's invitation
username | contact who initiate invitation. |
|
pure virtual |
delete contact from contact list. contact part will auto be removed friend relationship.
username | contact to be invited. |
|
pure virtual |
retrieve black list from local database
|
pure virtual |
retrieve black list from server
Note: sync operation. returned result will also be updated in database.
|
pure virtual |
retrieve current user's friend list from local database.
|
pure virtual |
retrieve current user's friend list from server.
|
pure virtual |
invite contact to be friend, need contact accept.
username | contact to be invited. |
message | contact will receive the message when got invitation. |
|
pure virtual |
register contact status change listener
listener | contact status change listener |
|
pure virtual |
remove registration of contact status change listener
listener | contact status change listener |
|
pure virtual |
remove contact from black list
Note: sync operation new item will updated to remote server, and also update local database.
username | contact to be removed from blacklist |
|
pure virtual |
save black list.
Note: sync operation. black list will be sent to server and local database will also updated.
blacklist | contacts in the block list can not send message inviation to user |