com.threerings.crowd.chat.data
Class ChatMarshaller

java.lang.Object
  extended by com.threerings.presents.data.InvocationMarshaller
      extended by 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.


Nested Class Summary
static class ChatMarshaller.TellMarshaller
          Marshalls results to implementations of ChatService.TellListener.
 
Nested classes/interfaces inherited from class com.threerings.presents.data.InvocationMarshaller
InvocationMarshaller.ConfirmMarshaller, InvocationMarshaller.ListenerMarshaller, InvocationMarshaller.ResultMarshaller
 
Nested classes/interfaces inherited from interface com.threerings.crowd.chat.client.ChatService
ChatService.TellListener
 
Nested classes/interfaces inherited from interface com.threerings.presents.client.InvocationService
InvocationService.ConfirmListener, InvocationService.InvocationListener, InvocationService.ResultListener
 
Field Summary
static int AWAY
          The method id used to dispatch away(com.threerings.presents.client.Client, java.lang.String) requests.
static int BROADCAST
          The method id used to dispatch broadcast(com.threerings.presents.client.Client, java.lang.String, com.threerings.presents.client.InvocationService.InvocationListener) requests.
static 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.
 
Fields inherited from class com.threerings.presents.data.InvocationMarshaller
_invCode, _invOid
 
Constructor Summary
ChatMarshaller()
           
 
Method Summary
 void away(Client arg1, String arg2)
          Sets this client's away message.
 void broadcast(Client arg1, String arg2, InvocationService.InvocationListener arg3)
          Requests that a message be broadcast to all users in the system.
 void tell(Client arg1, Name arg2, String arg3, ChatService.TellListener arg4)
          Requests that a tell message be delivered to the user with username equal to target.
 
Methods inherited from class com.threerings.presents.data.InvocationMarshaller
getInvocationCode, init, sendRequest, sendRequest, setInvocationOid, setNoResponse, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

ChatMarshaller

public ChatMarshaller()
Method Detail

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.