@Generated(value="com.threerings.presents.tools.GenServiceTask",
comments="Derived from ParlorService.java.")
public class ParlorMarshaller
extends com.threerings.presents.data.InvocationMarshaller
implements ParlorService
ParlorService 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 |
ParlorMarshaller.InviteMarshaller
Marshalls results to implementations of
ParlorService.InviteListener. |
com.threerings.presents.data.InvocationMarshaller.ConfirmMarshaller, com.threerings.presents.data.InvocationMarshaller.ListenerMarshaller, com.threerings.presents.data.InvocationMarshaller.ResultMarshallerParlorService.InviteListener| Modifier and Type | Field and Description |
|---|---|
static int |
CANCEL
The method id used to dispatch
cancel(int, com.threerings.presents.client.InvocationService.InvocationListener) requests. |
static int |
INVITE
The method id used to dispatch
invite(com.threerings.util.Name, com.threerings.parlor.game.data.GameConfig, com.threerings.parlor.client.ParlorService.InviteListener) requests. |
static int |
RESPOND
The method id used to dispatch
respond(int, int, java.lang.Object, com.threerings.presents.client.InvocationService.InvocationListener) requests. |
static int |
START_SOLITAIRE
The method id used to dispatch
startSolitaire(com.threerings.parlor.game.data.GameConfig, com.threerings.presents.client.InvocationService.ConfirmListener) requests. |
| Constructor and Description |
|---|
ParlorMarshaller() |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel(int arg1,
com.threerings.presents.client.InvocationService.InvocationListener arg2)
You probably don't want to call this directly, but want to call
Invitation.cancel(). |
void |
invite(com.threerings.util.Name arg1,
GameConfig arg2,
ParlorService.InviteListener arg3)
You probably don't want to call this directly, but want to generate your invitation request
via
ParlorDirector.invite(com.threerings.util.Name, com.threerings.parlor.game.data.GameConfig, com.threerings.parlor.client.InvitationResponseObserver). |
void |
respond(int arg1,
int arg2,
Object arg3,
com.threerings.presents.client.InvocationService.InvocationListener arg4)
You probably don't want to call this directly, but want to call one of
Invitation.accept(), Invitation.refuse(java.lang.String), or Invitation.counter(com.threerings.parlor.game.data.GameConfig, com.threerings.parlor.client.InvitationResponseObserver). |
void |
startSolitaire(GameConfig arg1,
com.threerings.presents.client.InvocationService.ConfirmListener arg2)
Requests to start a single player game with the specified game configuration.
|
public static final int CANCEL
cancel(int, com.threerings.presents.client.InvocationService.InvocationListener) requests.public static final int INVITE
invite(com.threerings.util.Name, com.threerings.parlor.game.data.GameConfig, com.threerings.parlor.client.ParlorService.InviteListener) requests.public static final int RESPOND
respond(int, int, java.lang.Object, com.threerings.presents.client.InvocationService.InvocationListener) requests.public static final int START_SOLITAIRE
startSolitaire(com.threerings.parlor.game.data.GameConfig, com.threerings.presents.client.InvocationService.ConfirmListener) requests.public void cancel(int arg1,
com.threerings.presents.client.InvocationService.InvocationListener arg2)
ParlorServiceInvitation.cancel(). Requests that an outstanding invitation be cancelled.cancel in interface ParlorServicearg1 - the unique id previously assigned by the server to this invitation.arg2 - will receive and process the response.public void invite(com.threerings.util.Name arg1,
GameConfig arg2,
ParlorService.InviteListener arg3)
ParlorServiceParlorDirector.invite(com.threerings.util.Name, com.threerings.parlor.game.data.GameConfig, com.threerings.parlor.client.InvitationResponseObserver). Requests that an invitation be delivered to the named
user, requesting that they join the inviting user in a game, the details of which are
specified in the supplied game config object.invite in interface ParlorServicearg1 - the username of the user to be invited.arg2 - a game config object detailing the type and configuration of the game to be
created.arg3 - will receive and process the response.public void respond(int arg1,
int arg2,
Object arg3,
com.threerings.presents.client.InvocationService.InvocationListener arg4)
ParlorServiceInvitation.accept(), Invitation.refuse(java.lang.String), or Invitation.counter(com.threerings.parlor.game.data.GameConfig, com.threerings.parlor.client.InvitationResponseObserver). Requests that
an invitation response be delivered with the specified parameters.respond in interface ParlorServicearg1 - the unique id previously assigned by the server to this invitation.arg2 - the response code to use in responding to the invitation.arg3 - the argument associated with the response (a string message from the player
explaining why the response was refused in the case of an invitation refusal or an updated
game configuration object in the case of a counter-invitation, or null in the case of an
accepted invitation).arg4 - will receive and process the response.public void startSolitaire(GameConfig arg1, com.threerings.presents.client.InvocationService.ConfirmListener arg2)
ParlorServicestartSolitaire in interface ParlorServiceCopyright © 2015. All rights reserved.