JML

net.sf.jml.protocol.incoming
Class IncomingADD

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

public class IncomingADD
extends MsnIncomingMessage

Add a friend response or other user add you notice. In MSNP8/MSNP9, it's the response of OutgoingADC or other user add you notice. In MSNP10, it should be IncomingADC message.

Supported Protocol: MSNP8/MSNP9

Syntax 1: ADD trId AL|BL|FL versionNum email friendlyName( groupId)

Syntax 2: ADD 0 RL versionNum email displayName

Syntax 1 is the response of OutgoingADD, Syntax 2 is the notice that other user add you.

Author:
Roger Chen

Field Summary
 
Fields inherited from class net.sf.jml.protocol.MsnMessage
protocol
 
Constructor Summary
IncomingADD(MsnProtocol protocol)
           
 
Method Summary
 Email getEmail()
           
 String getFriendlyName()
           
 String getGroupId()
           
 MsnList getList()
           
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

IncomingADD

public IncomingADD(MsnProtocol protocol)
Method Detail

getList

public MsnList getList()

getEmail

public Email getEmail()

getFriendlyName

public String getFriendlyName()

getGroupId

public String getGroupId()

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