org.coweb.bots
Interface Proxy


public interface Proxy

Interface used by the bots to send messages back to the session.


Method Summary
 void publish(Bot bot, Map<String,Object> data)
          Allows the bot to publish data to the session.
 void reply(Bot bot, String replyToken, Map<String,Object> data)
          Allows the bot to reply to a private user request.
 

Method Detail

reply

void reply(Bot bot,
           String replyToken,
           Map<String,Object> data)
Allows the bot to reply to a private user request. The message will only go to the participant who sent the request.

Parameters:
bot - The bot making the reply.
replyToken - The token associated with the user request.
data - The data to send to the client.

publish

void publish(Bot bot,
             Map<String,Object> data)
Allows the bot to publish data to the session.

Parameters:
bot - The bot performing the publish.
data - The data to send to the session.


Copyright © 2011-2012 The Dojo Foundation. All Rights Reserved.