public abstract class BuddyEventHandler extends ServerBaseEventHandler
handlers
context, handlerClasses
Constructor and Description |
---|
BuddyEventHandler(com.tvd12.ezyfox.core.content.impl.BaseAppContext context) |
Modifier and Type | Method and Description |
---|---|
void |
handleServerEvent(com.smartfoxserver.v2.core.ISFSEvent event) |
protected void |
init()
Initialize
|
protected void |
notifyToHandler(com.tvd12.ezyfox.core.structure.ServerHandlerClass handler,
com.tvd12.ezyfox.core.entities.ApiZone zone,
ApiBuddyImpl buddy)
Notify event to handler
|
protected void |
notifyToHandlers(com.tvd12.ezyfox.core.entities.ApiZone zone,
ApiBuddyImpl buddy)
Notify event to handlers (listeners)
|
notifyHandler, notifyHandlers
eventName, initHandlerClasses
public BuddyEventHandler(com.tvd12.ezyfox.core.content.impl.BaseAppContext context)
context
- the contextprotected void init()
ServerEventHandler
init
in class ServerBaseEventHandler
ServerEventHandler.init()
public void handleServerEvent(com.smartfoxserver.v2.core.ISFSEvent event) throws com.smartfoxserver.v2.exceptions.SFSException
com.smartfoxserver.v2.exceptions.SFSException
protected void notifyToHandlers(com.tvd12.ezyfox.core.entities.ApiZone zone, ApiBuddyImpl buddy)
zone
- api zone referencebuddy
- api buddy referenceprotected void notifyToHandler(com.tvd12.ezyfox.core.structure.ServerHandlerClass handler, com.tvd12.ezyfox.core.entities.ApiZone zone, ApiBuddyImpl buddy)
handler
- structure of handler classzone
- api zone referencebuddy
- api buddy referenceCopyright © 2012–2017 Young Monkeys. All rights reserved.