public class ICQPacket extends Object
Constructor and Description |
---|
ICQPacket(String sn,
int cmd,
int subcmd)
Creates a new ICQ packet.
|
Modifier and Type | Method and Description |
---|---|
int |
getCmd()
Get the value of cmd.
|
byte[] |
getData()
Get the value of data.
|
int |
getId()
Get the value of id.
|
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(String sn)
Set the value of sn.
|
void |
setSubcmd(int subcmd)
Set the value of subcmd.
|
public ICQPacket(String sn, int cmd, int subcmd)
sn
- the screenname (UIN)cmd
- the commandsubcmd
- the sub-commandpublic String getSN()
public void setSN(String sn)
sn
- Value to assign to sn.public int getCmd()
public void setCmd(int cmd)
cmd
- Value to assign to cmd.public int getSubcmd()
public void setSubcmd(int subcmd)
subcmd
- Value to assign to subcmd.public boolean isSMS()
public void setSMS(boolean sms)
sms
- Value to assign to SMS.public int getId()
public void setId(int id)
id
- Value to assign to id.public byte[] getData()
public void setData(byte[] data)
data
- Value to assign to data.