From 1461dc1ccc7142e9bcb01b9d1ae203424298b518 Mon Sep 17 00:00:00 2001 From: Ray Greenwell Date: Fri, 1 Sep 2006 01:10:24 +0000 Subject: [PATCH] Created a ResultAdapter... but called it ResultWrapper. There is already a ResultAdapter in util/ that adapts an invocation service ResultListener into a com.samskivert.util.ResultListener. Flash can't cope with two classes of the same name in the same library module, so I named my adapter *Wrapper. For consistency it would be nice if these were the same in ActionScript and Java, so maybe we'll end up just renaming the one in util/. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4354 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- .../presents/client/ResultWrapper.as | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 src/as/com/threerings/presents/client/ResultWrapper.as diff --git a/src/as/com/threerings/presents/client/ResultWrapper.as b/src/as/com/threerings/presents/client/ResultWrapper.as new file mode 100644 index 000000000..4d3fad3e1 --- /dev/null +++ b/src/as/com/threerings/presents/client/ResultWrapper.as @@ -0,0 +1,21 @@ +package com.threerings.presents.client { + +public class ResultWrapper extends InvocationAdapter + implements InvocationService_ResultListener +{ + public function ResultWrapper ( + failed :Function, processed :Function = null) + { + super(failed); + _processed = processed; + } + + // documentation inherited from interface ResultListener + public function requestProcessed (result :Object) :void + { + _processed(result); + } + + protected var _processed :Function; +} +}