JML

net.sf.jml.protocol.incoming
Class IncomingADC

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

public class IncomingADC
extends MsnIncomingMessage

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

Supported Protocol: MSNP10/MSNP11

Syntax 1: ADC trId AL|BL N=email

Syntax 2: ADC trId FL N=email F=friendlyName C=id

Syntax 3: ADC trId FL C=id groupId

Syntax 4: ADC 0 RL N=email F=displayName

Syntax 1/2/3 is the response of OutgoingADC, Syntax 4 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
IncomingADC(MsnProtocol protocol)
           
 
Method Summary
 Email getEmail()
           
 String getFriendlyName()
           
 String getGroupId()
           
 String getId()
           
 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

IncomingADC

public IncomingADC(MsnProtocol protocol)
Method Detail

getList

public MsnList getList()

getId

public String getId()

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