|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.threerings.crowd.chat.data.ChatMessage
com.threerings.crowd.chat.data.UserMessage
public class UserMessage
A ChatMessage representing a message that came from another user.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.threerings.io.Streamable |
|---|
Streamable.Closure |
| Field Summary | |
|---|---|
byte |
mode
The mode of the message. |
Name |
speaker
The user that the message came from. |
| Fields inherited from class com.threerings.crowd.chat.data.ChatMessage |
|---|
bundle, localtype, message, timestamp |
| Constructor Summary | |
|---|---|
UserMessage(Name speaker,
String bundle,
String message,
byte mode)
Construct a user message. |
|
| Method Summary | |
|---|---|
static UserMessage |
create(Name speaker,
String message)
Constructs a user message for a player originated tell (which has no bundle and is in the default mode). |
String |
getFormat()
Get the appropriate message format for this message. |
Name |
getSpeakerDisplayName()
Returns the name to display for the speaker. |
| Methods inherited from class com.threerings.crowd.chat.data.ChatMessage |
|---|
setClientInfo, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public Name speaker
public byte mode
| Constructor Detail |
|---|
public UserMessage(Name speaker,
String bundle,
String message,
byte mode)
| Method Detail |
|---|
public static UserMessage create(Name speaker,
String message)
public Name getSpeakerDisplayName()
public String getFormat()
ChatMessage
getFormat in class ChatMessage
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||