com.threerings.bureau.client
Class BureauDecoder

java.lang.Object
  extended by com.threerings.presents.client.InvocationDecoder
      extended by com.threerings.bureau.client.BureauDecoder

public class BureauDecoder
extends InvocationDecoder

Dispatches calls to a BureauReceiver instance.


Field Summary
static int CREATE_AGENT
          The method id used to dispatch BureauReceiver.createAgent(int) notifications.
static int DESTROY_AGENT
          The method id used to dispatch BureauReceiver.destroyAgent(int) notifications.
static String RECEIVER_CODE
          The generated hash code used to identify this receiver class.
 
Fields inherited from class com.threerings.presents.client.InvocationDecoder
receiver
 
Constructor Summary
BureauDecoder(BureauReceiver receiver)
          Creates a decoder that may be registered to dispatch invocation service notifications to the specified receiver.
 
Method Summary
 void dispatchNotification(int methodId, Object[] args)
          Dispatches the specified method to our receiver.
 String getReceiverCode()
          Returns the generated hash code that is used to identify this invocation notification service.
 
Methods inherited from class com.threerings.presents.client.InvocationDecoder
cast
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RECEIVER_CODE

public static final String RECEIVER_CODE
The generated hash code used to identify this receiver class.

See Also:
Constant Field Values

CREATE_AGENT

public static final int CREATE_AGENT
The method id used to dispatch BureauReceiver.createAgent(int) notifications.

See Also:
Constant Field Values

DESTROY_AGENT

public static final int DESTROY_AGENT
The method id used to dispatch BureauReceiver.destroyAgent(int) notifications.

See Also:
Constant Field Values
Constructor Detail

BureauDecoder

public BureauDecoder(BureauReceiver receiver)
Creates a decoder that may be registered to dispatch invocation service notifications to the specified receiver.

Method Detail

getReceiverCode

public String getReceiverCode()
Description copied from class: InvocationDecoder
Returns the generated hash code that is used to identify this invocation notification service.

Specified by:
getReceiverCode in class InvocationDecoder

dispatchNotification

public void dispatchNotification(int methodId,
                                 Object[] args)
Description copied from class: InvocationDecoder
Dispatches the specified method to our receiver.

Overrides:
dispatchNotification in class InvocationDecoder