Files
narya/src/java/com/threerings/presents/data/TimeBaseMarshaller.java
T
Michael Bayne 99edb5cd5e Regenerated services and receivers to fix bugs and use updated templates.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1659 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-08-20 19:38:16 +00:00

72 lines
2.4 KiB
Java

//
// $Id: TimeBaseMarshaller.java,v 1.2 2002/08/20 19:38:14 mdb Exp $
package com.threerings.presents.data;
import com.threerings.presents.client.Client;
import com.threerings.presents.client.TimeBaseService;
import com.threerings.presents.client.TimeBaseService.GotTimeBaseListener;
import com.threerings.presents.data.InvocationMarshaller;
import com.threerings.presents.dobj.InvocationResponseEvent;
/**
* Provides the implementation of the {@link TimeBaseService} 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.
*
* <p> Generated from <code>
* $Id: TimeBaseMarshaller.java,v 1.2 2002/08/20 19:38:14 mdb Exp $
* </code>
*/
public class TimeBaseMarshaller extends InvocationMarshaller
implements TimeBaseService
{
// documentation inherited
public static class GotTimeBaseMarshaller extends ListenerMarshaller
implements GotTimeBaseListener
{
/** The method id used to dispatch {@link #gotTimeOid}
* responses. */
public static final int GOT_TIME_OID = 1;
// documentation inherited from interface
public void gotTimeOid (int arg1)
{
omgr.postEvent(new InvocationResponseEvent(
callerOid, requestId, GOT_TIME_OID,
new Object[] { new Integer(arg1) }));
}
// documentation inherited
public void dispatchResponse (int methodId, Object[] args)
{
switch (methodId) {
case GOT_TIME_OID:
((GotTimeBaseListener)listener).gotTimeOid(
((Integer)args[0]).intValue());
return;
default:
super.dispatchResponse(methodId, args);
}
}
}
/** The method id used to dispatch {@link #getTimeOid} requests. */
public static final int GET_TIME_OID = 1;
// documentation inherited from interface
public void getTimeOid (Client arg1, String arg2, GotTimeBaseListener arg3)
{
GotTimeBaseMarshaller listener3 = new GotTimeBaseMarshaller();
listener3.listener = arg3;
sendRequest(arg1, GET_TIME_OID, new Object[] {
arg2, listener3
});
}
// Class file generated on 12:33:05 08/20/02.
}