Creates a new JoinRoomInvitationRequest instance.

Namespace: Sfs2X.Requests.Game
Assembly: SmartFox2X (in SmartFox2X.dll) Version: 1.7.3.0 (1.7.3)

Syntax

C#
public JoinRoomInvitationRequest(
	Room targetRoom,
	List<string> invitedUserNames,
	ISFSObject parameters,
	int expirySeconds,
	bool asSpectator
)

Parameters

targetRoom
Type: Sfs2X.Entities..::..Room
The Room to join (must have free user/player slots).
invitedUserNames
Type: System.Collections.Generic..::..List<(Of <(<'String>)>)>
A list of user names to invite.
parameters
Type: Sfs2X.Entities.Data..::..ISFSObject
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: System..::..Int32
The time given to the invitee to reply to the invitation. Default is 30.
asSpectator
Type: System..::..Boolean
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