com.threerings.crowd.chat.data
Class ChatMarshaller

java.lang.Object
  extended by com.threerings.presents.data.InvocationMarshaller<ClientObject>
      extended by com.threerings.crowd.chat.data.ChatMarshaller
All Implemented Interfaces:
ChatService, Streamable, InvocationService<ClientObject>

@Generated(value="com.threerings.presents.tools.GenServiceTask",
           comments="Derived from ChatService.java.")
public class ChatMarshaller
extends InvocationMarshaller<ClientObject>
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
 
Nested classes/interfaces inherited from interface com.threerings.io.Streamable
Streamable.Closure
 
Field Summary
static int AWAY
          The method id used to dispatch away(java.lang.String) requests.
static int BROADCAST
          The method id used to dispatch broadcast(java.lang.String, com.threerings.presents.client.InvocationService.InvocationListener) requests.
static int TELL
          The method id used to dispatch tell(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, _invdir, _invOid
 
Constructor Summary
ChatMarshaller()
           
 
Method Summary
 void away(String arg1)
          Sets this client's away message.
 void broadcast(String arg1, InvocationService.InvocationListener arg2)
          Requests that a message be broadcast to all users in the system.
 void tell(Name arg1, String arg2, ChatService.TellListener arg3)
          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, readObject, sendRequest, sendRequest, 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(java.lang.String) requests.

See Also:
Constant Field Values

BROADCAST

public static final int BROADCAST
The method id used to dispatch broadcast(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.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(String arg1)
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(String arg1,
                      InvocationService.InvocationListener arg2)
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 - the contents of the message.
arg2 - the reference that will receive a failure response.

tell

public void tell(Name arg1,
                 String arg2,
                 ChatService.TellListener arg3)
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 - the username of the user to which the tell message should be delivered.
arg2 - the contents of the message.
arg3 - the reference that will receive the tell response.