RemoveBuddyRequest Class |
Namespace: Sfs2X.Requests.Buddylist
public class RemoveBuddyRequest : BaseRequest
The RemoveBuddyRequest type exposes the following members.
Name | Description | |
---|---|---|
RemoveBuddyRequest |
Creates a new RemoveBuddyRequest instance.
|
void SomeMethod() { sfs.AddEventListener(SFSBuddyEvent.BUDDY_REMOVE, OnBuddyRemoved); sfs.AddEventListener(SFSBuddyEvent.BUDDY_ERROR, OnBuddyError); // Remove Jack from my buddies list sfs.Send(new RemoveBuddyRequest("Jack")); } void OnBuddyRemoved(BaseEvent evt) { Console.WriteLine("This buddy was removed: " + (Buddy)evt.Params["buddy"]); // .Net / Unity System.Diagnostics.Debug.WriteLine("This buddy was removed: " + (Buddy)evt.Params["buddy"]); // UWP } void OnBuddyError(BaseEvent evt) { Console.WriteLine("The following error occurred while executing a buddy-related request: " + (string)evt.Params["errorMessage"]); // .Net / Unity System.Diagnostics.Debug.WriteLine("The following error occurred while executing a buddy-related request: " + (string)evt.Params["errorMessage"]); // UWP }