Packagecom.smartfoxserver.v2.requests
Classpublic class RoomExtension
InheritanceRoomExtension Inheritance Object

The RoomExtension class contains a specific subset of the RoomSettings required to create a Room. It defines which server-side Extension should be attached to the Room upon creation.

The client can communicate with the Room Extension by means of the ExtensionRequest request.

See also

RoomSettings.extension
CreateRoomRequest
ExtensionRequest


Public Properties
 PropertyDefined By
  className : String
[read-only] Returns the fully qualified name of the main class of the Extension.
RoomExtension
  id : String
[read-only] Returns the name of the Extension to be attached to the Room.
RoomExtension
  propertiesFile : String
Defines the name of an optional properties file that should be loaded on the server-side during the Extension initialization.
RoomExtension
Public Methods
 MethodDefined By
  
RoomExtension(id:String, className:String)
Creates a new RoomExtension instance.
RoomExtension
Property Detail
classNameproperty
className:String  [read-only]

Returns the fully qualified name of the main class of the Extension.


Implementation
    public function get className():String
idproperty 
id:String  [read-only]

Returns the name of the Extension to be attached to the Room. It's the name of the server-side folder containing the Extension classes inside the main [sfs2x-install-folder]/SFS2X/extensions folder.


Implementation
    public function get id():String
propertiesFileproperty 
propertiesFile:String

Defines the name of an optional properties file that should be loaded on the server-side during the Extension initialization. The file must be located in the server-side folder containing the Extension classes (see the id property).


Implementation
    public function get propertiesFile():String
    public function set propertiesFile(value:String):void

See also

Constructor Detail
RoomExtension()Constructor
public function RoomExtension(id:String, className:String)

Creates a new RoomExtension instance. The RoomSettings.extension property must be set to this instance during Room creation.

Parameters
id:String — The name of the Extension as deployed on the server; it's the name of the folder containing the Extension classes inside the main [sfs2x-install-folder]/SFS2X/extensions folder.
 
className:String — The fully qualified name of the main class of the Extension.

See also