Initial work on a body service to allow setting a user's idled state.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1877 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
//
|
||||
// $Id: BodyMarshaller.java,v 1.1 2002/11/01 00:39:18 shaper Exp $
|
||||
|
||||
package com.threerings.crowd.data;
|
||||
|
||||
import com.threerings.crowd.client.BodyService;
|
||||
import com.threerings.presents.client.Client;
|
||||
import com.threerings.presents.data.InvocationMarshaller;
|
||||
import com.threerings.presents.dobj.InvocationResponseEvent;
|
||||
|
||||
/**
|
||||
* Provides the implementation of the {@link BodyService} 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.
|
||||
*/
|
||||
public class BodyMarshaller extends InvocationMarshaller
|
||||
implements BodyService
|
||||
{
|
||||
/** The method id used to dispatch {@link #setIdle} requests. */
|
||||
public static final int SET_IDLE = 1;
|
||||
|
||||
// documentation inherited from interface
|
||||
public void setIdle (Client arg1, boolean arg2)
|
||||
{
|
||||
sendRequest(arg1, SET_IDLE, new Object[] {
|
||||
new Boolean(arg2)
|
||||
});
|
||||
}
|
||||
|
||||
// Generated on 15:58:33 10/31/02.
|
||||
}
|
||||
Reference in New Issue
Block a user