com.threerings.micasa.lobby
Class LobbyMarshaller

java.lang.Object
  extended by com.threerings.presents.data.InvocationMarshaller
      extended by com.threerings.micasa.lobby.LobbyMarshaller
All Implemented Interfaces:
Streamable, LobbyService, InvocationService

@Generated(value="com.threerings.presents.tools.GenServiceTask",
           comments="Derived from LobbyService.java.")
public class LobbyMarshaller
extends InvocationMarshaller
implements LobbyService

Provides the implementation of the LobbyService 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 LobbyMarshaller.CategoriesMarshaller
          Marshalls results to implementations of LobbyService.CategoriesListener.
static class LobbyMarshaller.LobbiesMarshaller
          Marshalls results to implementations of LobbyService.LobbiesListener.
 
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.micasa.lobby.LobbyService
LobbyService.CategoriesListener, LobbyService.LobbiesListener
 
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 GET_CATEGORIES
          The method id used to dispatch getCategories(com.threerings.micasa.lobby.LobbyService.CategoriesListener) requests.
static int GET_LOBBIES
          The method id used to dispatch getLobbies(java.lang.String, com.threerings.micasa.lobby.LobbyService.LobbiesListener) requests.
 
Fields inherited from class com.threerings.presents.data.InvocationMarshaller
_invCode, _invdir, _invOid
 
Constructor Summary
LobbyMarshaller()
           
 
Method Summary
 void getCategories(LobbyService.CategoriesListener arg1)
          Requests the list of lobby categories that are available on this server.
 void getLobbies(String arg1, LobbyService.LobbiesListener arg2)
          Requests information on all active lobbies that match the specified category.
 
Methods inherited from class com.threerings.presents.data.InvocationMarshaller
getInvocationCode, init, readField__invCode, readField__invOid, readObject, sendRequest, sendRequest, sendRequest, sendRequest, setInvocationOid, setNoResponse, toString, writeField__invCode, writeField__invOid
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

GET_CATEGORIES

public static final int GET_CATEGORIES
The method id used to dispatch getCategories(com.threerings.micasa.lobby.LobbyService.CategoriesListener) requests.

See Also:
Constant Field Values

GET_LOBBIES

public static final int GET_LOBBIES
The method id used to dispatch getLobbies(java.lang.String, com.threerings.micasa.lobby.LobbyService.LobbiesListener) requests.

See Also:
Constant Field Values
Constructor Detail

LobbyMarshaller

public LobbyMarshaller()
Method Detail

getCategories

public void getCategories(LobbyService.CategoriesListener arg1)
Description copied from interface: LobbyService
Requests the list of lobby categories that are available on this server.

Specified by:
getCategories in interface LobbyService
Parameters:
arg1 - the listener that will receive and process the response.

getLobbies

public void getLobbies(String arg1,
                       LobbyService.LobbiesListener arg2)
Description copied from interface: LobbyService
Requests information on all active lobbies that match the specified category.

Specified by:
getLobbies in interface LobbyService
Parameters:
arg1 - the category of game for which a list of lobbies is desired.
arg2 - the listener that will receive and process the response.