Automatically unwrap any result object that is wrapped.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4377 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Ray Greenwell
2006-09-24 23:51:33 +00:00
parent 0709dc9580
commit a3213cdee2
@@ -1,5 +1,7 @@
package com.threerings.presents.data {
import com.threerings.util.Wrapped;
import com.threerings.presents.client.InvocationService_ResultListener;
public class InvocationMarshaller_ResultMarshaller
@@ -12,8 +14,12 @@ public class InvocationMarshaller_ResultMarshaller
{
switch (methodId) {
case REQUEST_PROCESSED:
var result :Object = args[0];
if (result is Wrapped) {
result = (result as Wrapped).unwrap();
}
(listener as InvocationService_ResultListener).requestProcessed(
args[0]);
result);
return;
default: