JML

net.sf.jml.protocol.incoming
Class IncomingNLN

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

public class IncomingNLN
extends MsnIncomingMessage

The notice message that friends change their status.

Supported Protocol: All

MSNP8 Syntax: NLN userStatus email displayName clientId

MSNP9/MSNP10 Syntax: NLN userStatus email displayName clientId msnObject

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

Field Summary
 
Fields inherited from class net.sf.jml.protocol.MsnMessage
protocol
 
Constructor Summary
IncomingNLN(MsnProtocol protocol)
          Create a new instance for this 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  boolean isSupportTransactionId()
          If support transaction id, then can set transaction id.
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, 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

IncomingNLN

public IncomingNLN(MsnProtocol protocol)
Create a new instance for this message.

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

isSupportTransactionId

protected boolean isSupportTransactionId()
Description copied from class: MsnMessage
If support transaction id, then can set transaction id.

Overrides:
isSupportTransactionId in class MsnMessage
Returns:
is support transaction id

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