Examples of sendChat()


Examples of net.bnubot.core.Connection.sendChat()

 
  public static void sendChat(String text) {
    if(profile != null) {
      Connection c = profile.getPrimaryConnection();
      if(c != null)
        c.sendChat(text, true);
    }
  }
 
  public static Session get(String sid) {
    return sessions.get(sid);
View Full Code Here

Examples of net.bnubot.util.BNetUser.sendChat()

  }

  @Override
  public void friendsAdd(BNCSConnection source, FriendEntry friend) {
    BNetUser target = new BNetUser(source, friend.getAccount(), source.getMyUser());
    target.sendChat("You are logged in. You must add me to your friends list.", true);
  }
}
View Full Code Here

Examples of org.eclipse.ecf.example.clients.XMPPChatClient.sendChat()

        : message;
    System.out.println("ECF chat robot example sending to targetAccount="
        + originalArgs[2] + " message=" + msgToSend);

    // Send chat message to targetID
    client.sendChat(targetID, msgToSend);

    // Get shared object container adapter
    ISharedObjectContainer socontainer = (ISharedObjectContainer) client
        .getContainer().getAdapter(ISharedObjectContainer.class);
    // Create and add shared object to container
View Full Code Here

Examples of org.eclipse.ecf.example.clients.XMPPChatClient.sendChat()

    // Construct message
    String msgToSend = (message==null)?"Hi, I'm an ECF chat robot.":message;
    System.out.println("ECF chat robot example sending to targetAccount=" + originalArgs[2] + " message="+msgToSend);
   
    // Send message to targetID
    client.sendChat(targetID, msgToSend);

    // Close up nicely and return
    client.close();
    return IApplication.EXIT_OK;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.