com.threerings.presents.client
Interface InvocationReceiver

All Known Subinterfaces:
BureauReceiver, LocationReceiver
All Known Implementing Classes:
LocationDirector

public interface InvocationReceiver

Invocation notification receipt interfaces should be defined as extending this interface. Actual notification receivers will implement the requisite receiver interface definition and register themselves with the InvocationDirector using the generated InvocationDecoder class specific to the notification receiver interface in question. For example:

 public class FooDirector implements FooReceiver
 {
     public FooDirector (PresentsContext ctx)
     {
         InvocationDirector idir = ctx.getClient().getInvocationDirector();
         idir.registerReceiver(new FooDecoder(this));
     }
 }
 

See Also:
InvocationDirector.registerReceiver(com.threerings.presents.client.InvocationDecoder)

Nested Class Summary
static class InvocationReceiver.Registration
          Used to maintain a registry of invocation receivers that can be used to convert (large) hash codes into (small) registration numbers.