diff --git a/src/as/com/threerings/presents/data/InvocationMarshaller_ResultMarshaller.as b/src/as/com/threerings/presents/data/InvocationMarshaller_ResultMarshaller.as new file mode 100644 index 000000000..3440ad9f3 --- /dev/null +++ b/src/as/com/threerings/presents/data/InvocationMarshaller_ResultMarshaller.as @@ -0,0 +1,31 @@ +package com.threerings.presents.data { + +import com.threerings.presents.client.InvocationService_ResultListener; + +public class InvocationMarshaller_ResultMarshaller + extends InvocationMarshaller_ListenerMarshaller + implements InvocationService_ResultListener +{ + public static const REQUEST_PROCESSED :int = 1; + + // documetnation inherited from interfacc + public function requestProcessed (result :Object) :void + { + // TODO: server only? + } + + // documetnation inherited + override public function dispatchResponse (methodId :int, args :Array) :void + { + switch (methodId) { + case REQUEST_PROCESSED: + (listener as InvocationService_ResultListener).requestProcessed( + args[0]); + return; + + default: + super.dispatchResponse(methodId, args); + } + } +} +}