JML

net.sf.jml.protocol.incoming
Class IncomingILN

java.lang.Object
  extended by net.sf.jml.protocol.MsnMessage
      extended by net.sf.jml.protocol.MsnIncomingMessage
          extended by net.sf.jml.protocol.incoming.IncomingILN

public class IncomingILN
extends MsnIncomingMessage

When user have set the init status, received online user info.

Supported Protocol: All

MSNP8 Syntax: ILN trId userStatus email displayName clientId

MSNP9/MSNP10 Syntax: ILN trId userStatus email displayName clientId msnObject as of recent update, msnObject is 0 when there is no msnObject, as opposed to not there.

Author:
Roger Chen, Angel Barragán Chacón

Field Summary
 
Fields inherited from class net.sf.jml.protocol.MsnMessage
protocol
 
Constructor Summary
IncomingILN(MsnProtocol protocol)
          Create a new instance of this incoming message.
 
Method Summary
 int getClientId()
          Retrieves the contact id.
 String getDisplayName()
          Retrieves the contact display name.
 Email getEmail()
          Retrieves the contact e-mail.
 MsnObject getMsnObject()
          Retrieves the MsnObject (avatar) for the contact.
 MsnUserStatus getUserStatus()
          Retrieve the contact status.
protected  void messageReceived(MsnSession session)
          The message have received.
 
Methods inherited from class net.sf.jml.protocol.MsnIncomingMessage
getOutgoingMessage
 
Methods inherited from class net.sf.jml.protocol.MsnMessage
addParam, asString, clearParams, getChunkData, getCommand, getParam, getParamCount, getProtocol, getTransactionId, isSupportChunkData, isSupportTransactionId, load, save, setChunkData, setChunkData, setCommand, setParam, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IncomingILN

public IncomingILN(MsnProtocol protocol)
Create a new instance of this incoming message.

Parameters:
protocol - Instance of the protocol used for the message.
Method Detail

getUserStatus

public MsnUserStatus getUserStatus()
Retrieve the contact status.

Returns:
Contact current status.

getEmail

public Email getEmail()
Retrieves the contact e-mail.

Returns:
Email for the contact.

getDisplayName

public String getDisplayName()
Retrieves the contact display name.

Returns:
Conatact display name.

getClientId

public int getClientId()
Retrieves the contact id.

Returns:
Contact unique id.

getMsnObject

public MsnObject getMsnObject()
Retrieves the MsnObject (avatar) for the contact.

Returns:
MsnObject instance for the avatar of the contact.

messageReceived

protected void messageReceived(MsnSession session)
Description copied from class: MsnIncomingMessage
The message have received.

Overrides:
messageReceived in class MsnIncomingMessage
Parameters:
session - the MsnSession which received the message

JML