com.smartfoxserver.v2.core
Class SFSEvent

java.lang.Object
  extended by com.smartfoxserver.v2.core.SFSEvent
All Implemented Interfaces:
ISFSEvent

public class SFSEvent
extends Object
implements ISFSEvent

The SFSEvent represents a Server side event. The SFS2X framework provide a large selection of events that any Extension can listen to in order to react to various changes happening at runtime. For example server events can notify the creation or destruction of a Room, the disconnection of a User, the login of a client and much more.

See Also:
SFSEventType

Constructor Summary
SFSEvent(SFSEventType type)
           
SFSEvent(SFSEventType type, Map<ISFSEventParam,Object> params)
           
 
Method Summary
 Object getParameter(ISFSEventParam id)
          Get a parameter from the event object
 SFSEventType getType()
          Get the type of the event
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SFSEvent

public SFSEvent(SFSEventType type)

SFSEvent

public SFSEvent(SFSEventType type,
                Map<ISFSEventParam,Object> params)
Method Detail

getType

public SFSEventType getType()
Get the type of the event

Specified by:
getType in interface ISFSEvent
Returns:
the type of the event
See Also:
SFSEventType

getParameter

public Object getParameter(ISFSEventParam id)
Get a parameter from the event object

Specified by:
getParameter in interface ISFSEvent
Parameters:
id - the id/name of the parameter
Returns:
the parameter value
See Also:
SFSEventParam

toString

public String toString()
Overrides:
toString in class Object