UnsubscribeRoomGroupRequest Class |
Namespace: Sfs2X.Requests
public class UnsubscribeRoomGroupRequest : BaseRequest
The UnsubscribeRoomGroupRequest type exposes the following members.
Name | Description | |
---|---|---|
UnsubscribeRoomGroupRequest |
Creates a new UnsubscribeRoomGroupRequest instance.
|
void SomeMethod() { sfs.AddEventListener(SFSEvent.ROOM_GROUP_UNSUBSCRIBE, OnUnsubscribeRoomGroup); sfs.AddEventListener(SFSEvent.ROOM_GROUP_UNSUBSCRIBE_ERROR, OnUnsubscribeRoomGroupError); // Unsubscribe the "card_games" group sfs.Send( new UnsubscribeRoomGroupRequest("card_games") ); } void OnUnsubscribeRoomGroup(BaseEvent evt) { Console.WriteLine("Group unsubscribed: " + (string)evt.Params["groupId"]); // .Net / Unity System.Diagnostics.Debug.WriteLine("Group unsubscribed: " + (string)evt.Params["groupId"]); // UWP } void OnUnsubscribeRoomGroupError(BaseEvent evt) { Console.WriteLine("Group unsubscribing failed: " + (string)evt.Params["errorMessage"]); // .Net / Unity System.Diagnostics.Debug.WriteLine("Group unsubscribing failed: " + (string)evt.Params["errorMessage"]); // UWP }