JoinRoomInvitationRequest Constructor (Room, ListString, ISFSObject, Int32, Boolean) |
Creates a new JoinRoomInvitationRequest instance.
Namespace:
Sfs2X.Requests.Game
Assembly:
SmartFox2X (in SmartFox2X.dll) Version: 1.8.0.0 (1.8.0)
Syntax public JoinRoomInvitationRequest(
Room targetRoom,
List<string> invitedUserNames,
ISFSObject parameters,
int expirySeconds,
bool asSpectator
)
Parameters
- targetRoom
- Type: Sfs2X.EntitiesRoom
The Room to join (must have free user/player slots). - invitedUserNames
- Type: System.Collections.GenericListString
A list of user names to invite. - parameters
- Type: Sfs2X.Entities.DataISFSObject
An instance of SFSObject containing any relevant parameter or message to be sent to the invited users (for example an invitation message). Default is null. - expirySeconds
- Type: SystemInt32
The time given to the invitee to reply to the invitation. Default is 30. - asSpectator
- Type: SystemBoolean
In Game Rooms only, indicates if the invited user(s) should join as spectator(s) instead of player(s). Default is false.
Remarks
The instance must be passed to the
SmartFox.Send method for the request to be performed.
See Also