@Generated(value="com.threerings.presents.tools.GenServiceTask",
comments="Derived from ChatService.java.")
public class ChatMarshaller
extends InvocationMarshaller<ClientObject>
implements ChatService
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.| Modifier and Type | Class and Description |
|---|---|
static class |
ChatMarshaller.TellMarshaller
Marshalls results to implementations of
ChatService.TellListener. |
InvocationMarshaller.ConfirmMarshaller, InvocationMarshaller.ListenerMarshaller, InvocationMarshaller.ResultMarshallerChatService.TellListenerInvocationService.ConfirmListener, InvocationService.InvocationListener, InvocationService.ResultListenerStreamable.Closure| Modifier and Type | Field and Description |
|---|---|
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. |
| Constructor and Description |
|---|
ChatMarshaller() |
| Modifier and Type | Method and Description |
|---|---|
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. |
getInvocationCode, init, readObject, setInvocationOid, setNoResponse, toStringpublic static final int AWAY
away(java.lang.String) requests.public static final int BROADCAST
broadcast(java.lang.String, com.threerings.presents.client.InvocationService.InvocationListener) requests.public static final int TELL
tell(com.threerings.util.Name, java.lang.String, com.threerings.crowd.chat.client.ChatService.TellListener) requests.public void away(String arg1)
ChatServiceaway in interface ChatServicepublic void broadcast(String arg1, InvocationService.InvocationListener arg2)
ChatServicebroadcast in interface ChatServicearg1 - the contents of the message.arg2 - the reference that will receive a failure response.public void tell(Name arg1, String arg2, ChatService.TellListener arg3)
ChatServicetarget.tell in interface ChatServicearg1 - 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.Copyright © 2015. All rights reserved.