public void runHandler(OrtcClient sender, String channel, String message, Object filtered, Object payload){
		if(this.withOptions){
            Map msgOptions = new HashMap();
            msgOptions.put("channel", channel);
            msgOptions.put("message", message);
			if (payload instanceof String){
            	msgOptions.put("seqId", ((String) payload));
			}else if (payload instanceof Map){
				msgOptions.put("seqId", (String)((Map) payload).get("seqId"));
			}
            if (filtered != null){
                msgOptions.put("filter", ((Boolean) filtered).booleanValue());
            }
            this.onMessageWithOptions.run(sender, msgOptions);
		} else if(this.withFilter){
            this.onMessageWithFilter.run(sender, channel, (Boolean) filtered, message);
        } else if(this.isWithPayload){
            this.onMessageWithPayload.run(sender, channel, message, (Map)payload);
        } else{
			this.onMessage.run(sender, channel, message);
		}
	}
public void runHandler ( OrtcClient sender , String channel , String message , Object filtered , Object payload ) { if ( this . withOptions ) { Map msgOptions = new HashMap ( ) ; msgOptions . put ( "channel" , channel ) ; msgOptions . put ( "message" , message ) ; if ( payload instanceof String ) { msgOptions . put ( "seqId" , ( ( String ) payload ) ) ; } else if ( payload instanceof Map ) { msgOptions . put ( "seqId" , ( String ) ( ( Map ) payload ) . get ( "seqId" ) ) ; } if ( filtered != null ) { msgOptions . put ( "filter" , ( ( Boolean ) filtered ) . booleanValue ( ) ) ; } this . onMessageWithOptions . run ( sender , msgOptions ) ; } else if ( this . withFilter ) { this . onMessageWithFilter . run ( sender , channel , ( Boolean ) filtered , message ) ; } else if ( this . isWithPayload ) { this . onMessageWithPayload . run ( sender , channel , message , ( Map ) payload ) ; } else { this . onMessage . run ( sender , channel , message ) ; } }
Fires the event handler that is associated the subscribed channel (with payload)
@param channel
@param sender
@param message
@param payload