public class ChatEvent extends Object
Modifier and Type | Field and Description |
---|---|
static String |
TYPE_FILE
Event type for a received file (value is file info, nick only available for initial file events).
|
static String |
TYPE_MESSAGE
Event type for a received message (value is message text).
|
static String |
TYPE_STATECHANGE
Event type for a chat user status change (value is user state).
|
Constructor and Description |
---|
ChatEvent()
Create a new chat event.
|
ChatEvent(String type,
String nick,
IComponentIdentifier cid,
Object value,
boolean privatemessage,
byte[] image)
Create a new chat event.
|
Modifier and Type | Method and Description |
---|---|
IComponentIdentifier |
getComponentIdentifier()
Get the cid.
|
byte[] |
getImage()
Get the image.
|
String |
getNick()
Get the nick name.
|
String |
getType()
Get the type.
|
Object |
getValue()
Get the value.
|
boolean |
isPrivateMessage()
Get the privatemessage.
|
void |
setComponentIdentifier(IComponentIdentifier cid)
Set the cid.
|
void |
setImage(byte[] image)
Set the image.
|
void |
setNick(String nick)
Set the nick name.
|
void |
setPrivateMessage(boolean privatemessage)
Set the privatemessage.
|
void |
setType(String type)
Set the type.
|
void |
setValue(Object value)
Set the value.
|
public static final String TYPE_STATECHANGE
public static final String TYPE_MESSAGE
public static final String TYPE_FILE
public ChatEvent()
public ChatEvent(String type, String nick, IComponentIdentifier cid, Object value, boolean privatemessage, byte[] image)
public String getType()
public String getNick()
public IComponentIdentifier getComponentIdentifier()
public Object getValue()
public void setType(String type)
public void setNick(String nick)
public void setComponentIdentifier(IComponentIdentifier cid)
public void setValue(Object value)
public boolean isPrivateMessage()
public void setPrivateMessage(boolean privatemessage)
privatemessage
- The privatemessage to set.public byte[] getImage()
public void setImage(byte[] image)
image
- The image to set.Copyright © 2012. All Rights Reserved.