org.walluck.oscar.handlers.icq
Class ICQPacket

java.lang.Object
  extended byorg.walluck.oscar.handlers.icq.ICQPacket

public class ICQPacket
extends java.lang.Object

ICQ Packet.

Since:
1.0
Version:
1.0
Author:
David Walluck

Constructor Summary
ICQPacket(java.lang.String sn, int cmd, int subcmd)
          Creates a new ICQ packet.
 
Method Summary
 int getCmd()
          Get the value of cmd.
 byte[] getData()
          Get the value of data.
 int getId()
          Get the value of id.
 java.lang.String getSN()
          Get the value of sn.
 int getSubcmd()
          Get the value of subcmd.
 boolean isSMS()
          Get the value of sms.
 void setCmd(int cmd)
          Set the value of cmd.
 void setData(byte[] data)
          Set the value of data.
 void setId(int id)
          Set the value of id.
 void setSMS(boolean sms)
          Set the value of SMS.
 void setSN(java.lang.String sn)
          Set the value of sn.
 void setSubcmd(int subcmd)
          Set the value of subcmd.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ICQPacket

public ICQPacket(java.lang.String sn,
                 int cmd,
                 int subcmd)
Creates a new ICQ packet.

Parameters:
sn - the screenname (UIN)
cmd - the command
subcmd - the sub-command
Method Detail

getSN

public java.lang.String getSN()
Get the value of sn.

Returns:
value of sn.

setSN

public void setSN(java.lang.String sn)
Set the value of sn.

Parameters:
sn - Value to assign to sn.

getCmd

public int getCmd()
Get the value of cmd.

Returns:
value of cmd.

setCmd

public void setCmd(int cmd)
Set the value of cmd.

Parameters:
cmd - Value to assign to cmd.

getSubcmd

public int getSubcmd()
Get the value of subcmd.

Returns:
value of subcmd.

setSubcmd

public void setSubcmd(int subcmd)
Set the value of subcmd.

Parameters:
subcmd - Value to assign to subcmd.

isSMS

public boolean isSMS()
Get the value of sms.

Returns:
value of sms.

setSMS

public void setSMS(boolean sms)
Set the value of SMS.

Parameters:
sms - Value to assign to SMS.

getId

public int getId()
Get the value of id.

Returns:
value of id.

setId

public void setId(int id)
Set the value of id.

Parameters:
id - Value to assign to id.

getData

public byte[] getData()
Get the value of data.

Returns:
value of data.

setData

public void setData(byte[] data)
Set the value of data.

Parameters:
data - Value to assign to data.