Skip to Content
Lotus Instant Messaging/Web Conferencing (Sametime): Building Sametime Enabled Applications
book

Lotus Instant Messaging/Web Conferencing (Sametime): Building Sametime Enabled Applications

by John Bergland, John Barrow, Jonas Covey, Washington Cabral, Carl Tyler, Yafit Sami, Rob Novak
November 2003
Intermediate to advanced
496 pages
11h 59m
English
IBM Redbooks
Content preview from Lotus Instant Messaging/Web Conferencing (Sametime): Building Sametime Enabled Applications
76 Lotus Instant Messaging/Web Conferencing (Sametime): Building Sametime-Enabled Applications
Example 3-17 TranslatorBot doTextReceived() method
protected String doTextReceived(ImEvent event, String receivedText, Hashtable
imState)
{
Im im = event.getIm();
String previousState = "";
String returnText = "";
previousState = (String)imState.get(im);
if (receivedText.toUpperCase().compareTo("CHANGECHOICES") == 0)
{
// Remove Im object from Hashtable
imState.remove(im);
// Prompt user to enter new preferences
returnText = "Please enter the 2 digit code for the language you are
using.";
}
else if (previousState == null)
{
// First submission fro ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

IBM WebSphere Application Server V8.5 Administration and Configuration Guide for Liberty Profile

IBM WebSphere Application Server V8.5 Administration and Configuration Guide for Liberty Profile

Anil Esen, Toshiyuki Iue, Neil Patterson, Jennifer Ricciuti
Using the IBM Lotus Virtual Classroom: A Best Practices Guide to e-Learning

Using the IBM Lotus Virtual Classroom: A Best Practices Guide to e-Learning

Mike Ebbers, David Balague, Balaka Ganguly, Dan Noyes, Phil Salm

Publisher Resources

ISBN: 0738499080Purchase book