com.threerings.crowd.chat.data
Class SpeakMarshaller

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

@Generated(value="com.threerings.presents.tools.GenServiceTask",
           comments="Derived from SpeakService.java.")
public class SpeakMarshaller
extends InvocationMarshaller<ClientObject>
implements SpeakService

Provides the implementation of the SpeakService 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
 
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.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 SPEAK
          The method id used to dispatch speak(java.lang.String, byte) requests.
 
Fields inherited from class com.threerings.presents.data.InvocationMarshaller
_invCode, _invdir, _invOid
 
Constructor Summary
SpeakMarshaller()
           
 
Method Summary
 void speak(String arg1, byte arg2)
          Issues a request to speak "on" the distributed object via which this speak service was provided.
 
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

SPEAK

public static final int SPEAK
The method id used to dispatch speak(java.lang.String, byte) requests.

See Also:
Constant Field Values
Constructor Detail

SpeakMarshaller

public SpeakMarshaller()
Method Detail

speak

public void speak(String arg1,
                  byte arg2)
Description copied from interface: SpeakService
Issues a request to speak "on" the distributed object via which this speak service was provided.

Specified by:
speak in interface SpeakService
Parameters:
arg1 - the message to be spoken.
arg2 - the "mode" of the message. This is an opaque value that will be passed back down via the ChatDirector to the ChatDisplay implementations which can interpret it in an application specific manner. It's useful for differentiating between regular speech, emotes, etc.