com.threerings.crowd.chat.data
Class ChatMarshaller
java.lang.Object
com.threerings.presents.data.InvocationMarshaller
com.threerings.crowd.chat.data.ChatMarshaller
- All Implemented Interfaces:
- ChatService, Streamable, InvocationService
@Generated(value="com.threerings.presents.tools.GenServiceTask",
comments="Derived from ChatService.java.")
public class ChatMarshaller- extends InvocationMarshaller
- implements ChatService
Provides the implementation of the ChatService interface
that marshalls the arguments and delivers the request to the provider
on the server. Also provides an implementation of the response listener
interfaces that marshall the response arguments and deliver them back
to the requesting client.
AWAY
public static final int AWAY
- The method id used to dispatch
away(com.threerings.presents.client.Client, java.lang.String) requests.
- See Also:
- Constant Field Values
BROADCAST
public static final int BROADCAST
- The method id used to dispatch
broadcast(com.threerings.presents.client.Client, java.lang.String, com.threerings.presents.client.InvocationService.InvocationListener) requests.
- See Also:
- Constant Field Values
TELL
public static final int TELL
- The method id used to dispatch
tell(com.threerings.presents.client.Client, com.threerings.util.Name, java.lang.String, com.threerings.crowd.chat.client.ChatService.TellListener) requests.
- See Also:
- Constant Field Values
ChatMarshaller
public ChatMarshaller()
away
public void away(Client arg1,
String arg2)
- Description copied from interface:
ChatService
- Sets this client's away message. If the message is null or the empty string, the away
message will be cleared.
- Specified by:
away in interface ChatService
broadcast
public void broadcast(Client arg1,
String arg2,
InvocationService.InvocationListener arg3)
- Description copied from interface:
ChatService
- Requests that a message be broadcast to all users in the system.
- Specified by:
broadcast in interface ChatService
- Parameters:
arg1 - a connected, operational client instance.arg2 - the contents of the message.arg3 - the reference that will receive a failure response.
tell
public void tell(Client arg1,
Name arg2,
String arg3,
ChatService.TellListener arg4)
- Description copied from interface:
ChatService
- Requests that a tell message be delivered to the user with username equal to
target.
- Specified by:
tell in interface ChatService
- Parameters:
arg1 - a connected, operational client instance.arg2 - the username of the user to which the tell message should be delivered.arg3 - the contents of the message.arg4 - the reference that will receive the tell response.