public class SNAC extends Object
Constructor and Description |
---|
SNAC()
Creates a new empty SNAC.
|
SNAC(int family,
int subtype,
short flags,
int id)
Creates a new server SNAC.
|
SNAC(int family,
int subtype,
short flags,
Object data,
boolean wantResponse)
Creates a new client SNAC.
|
Modifier and Type | Method and Description |
---|---|
Object |
getData()
Get the value of data.
|
int |
getFamily()
Get the value of family.
|
short |
getFlags()
Get the value of flags.
|
int |
getId()
Get the value of id.
|
long |
getIssueTime()
Get the value of issueTime.
|
int |
getSubtype()
Get the value of subtype.
|
int |
getVersion()
Get the value of version.
|
void |
setData(Object data)
Set the value of data.
|
void |
setFamily(int family)
Set the value of family.
|
void |
setFlags(short flags)
Set the value of flags.
|
void |
setId(int id)
Set the value of id.
|
void |
setIssueTime(long issueTime)
Set the value of issueTime.
|
void |
setSubtype(int subtype)
Set the value of subtype.
|
void |
setVersion(int version)
Set the value of version.
|
void |
setWantResponse(boolean wantResponse)
Set the value of wantResponse.
|
boolean |
wantResponse()
Get the value of wantResponse.
|
public SNAC()
public SNAC(int family, int subtype, short flags, Object data, boolean wantResponse)
family
- the SNAC familysubtype
- the SNAC subtypeflags
- the SNAC flags (normally 0x0000)data
- the data to store with this SNACwantResponse
- whether or not we expect a response for
this SNACpublic SNAC(int family, int subtype, short flags, int id)
family
- the SNAC familysubtype
- the SNAC subtypeflags
- the SNAC flags (normally 0x0000)id
- the SNAC IDpublic int getFamily()
public void setFamily(int family)
family
- Value to assign to family.public int getSubtype()
public void setSubtype(int subtype)
subtype
- Value to assign to subtype.public short getFlags()
public void setFlags(short flags)
flags
- Value to assign to flags.public int getId()
public void setId(int id)
id
- Value to assign to id.public Object getData()
public void setData(Object data)
data
- Value to assign to data.public boolean wantResponse()
public void setWantResponse(boolean wantResponse)
wantResponse
- Value to assign to wantResponse.public long getIssueTime()
public void setIssueTime(long issueTime)
issueTime
- Value to assign to issueTime.public int getVersion()
public void setVersion(int version)
version
- Value to assign to version.