Buddy List Question
Posted: 21 Sep 2021, 08:04
Hi, I'm trying to utilize the BuddyListAPI feature of SmartFox Server to implement Friend System of my application and I have some question:
1. How can I make 2 user to have buddy relation ship if my backend confirm that they're accept each other. Currently I'm using
This will be expose to my backend using Servelet interface that it'll call when both user accept friend request of eachother. But currently I can see that User A have User B as Buddy (UserA's buddyList at client have count = 1) but User B's buddyList have count = 0
2. Like above how can I break the buddy relation ship of 2 user if my backend detect one user is unfriend other. If I remove buddy userB from userA buddy list will userB friendlist's automatically remove userA too?
3. How or where can I see the buddy relationship of all user in zone
4. When will the API
will be implemented, this will become very handy with my system
Sorry for my bad English
Thank you!
1. How can I make 2 user to have buddy relation ship if my backend confirm that they're accept each other. Currently I'm using
Code: Select all
getParentExtension.getBuddyApi().addBuddy(user, id, false, true, true);2. Like above how can I break the buddy relation ship of 2 user if my backend detect one user is unfriend other. If I remove buddy userB from userA buddy list will userB friendlist's automatically remove userA too?
3. How or where can I see the buddy relationship of all user in zone
4. When will the API
Code: Select all
void addBuddy(Zone zone,
java.lang.String ownerName,
java.lang.String buddyName,
boolean isTemp,
boolean fireClientEvent,
boolean fireServerEvent)
throws SFSBuddyListExceptionSorry for my bad English
Thank you!