Win a copy of Head First Agile this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

ymsg  RSS feed

 
geeta Paygude
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I have an application where i am using messenger applcation
My requirement is when i am fecthing ymsg.network.event.SessionEvent.getFrom()
I get only partial email Id .
eg: if the email id is x_y1009@yahoo.com, it gives me only x_y1009
so ,is there any API which whill will give me API to fetch whole email id?
Waiting for reply

Class Looks like

Please look at messageReceived() this method
package com.ail.dhg.bot.business;

import org.apache.log4j.Logger;
import ymsg.network.event.SessionChatEvent;
import ymsg.network.event.SessionConferenceEvent;
import ymsg.network.event.SessionErrorEvent;
import ymsg.network.event.SessionEvent;
import ymsg.network.event.SessionExceptionEvent;
import ymsg.network.event.SessionFileTransferEvent;
import ymsg.network.event.SessionFriendEvent;
import ymsg.network.event.SessionListener;
import ymsg.network.event.SessionNewMailEvent;
import ymsg.network.event.SessionNotifyEvent;
import ymsg.support.MessageDecoder;

/*******************************************************************************
* Most of these method will be called as a direct result of 'packets' arriving
* from the Yahoo server to the client
*
* @version $Revision: 1.4 $

******************************************************************************/
public class YahooConnectionListener
implements SessionListener
{
private YahooConnectionmoYahooConnection;
private static LoggermoLogger= Logger
.getLogger(YahooConnectionListener.class);

public YahooConnectionListener(YahooConnection oYahooConnection)
{
moLogger.debug("YahooSessionListener constructor called");
moYahooConnection = oYahooConnection;
}
/***************************************************************************
* when a message is recieved by the bot it is parsed by YahooManager
**************************************************************************/
public synchronized void messageReceived(SessionEvent ev)
{
moLogger.debug("messageReceived called, message " + ev.getMessage());
MessageDecoder oDecoder = new MessageDecoder();
new YahooManager().parseMessage(oDecoder.decodeToText(ev.getMessage()),
ev.getFrom());


}
public void conferenceInviteDeclinedReceived(SessionConferenceEvent ev)
{}
}

Please reply
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24217
38
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not familiar with the API, but given that it's Yahoo Messenger, perhaps the address is ALWAYS @yahoo.com ?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!