a22ca8b079
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4131 542714f4-19e9-0310-aa3c-eee0fc999fb1
28 lines
652 B
ActionScript
28 lines
652 B
ActionScript
package com.threerings.presents.dobj {
|
|
|
|
public class SubscriberAdapter
|
|
implements Subscriber
|
|
{
|
|
public function SubscriberAdapter (success :Function, failure :Function)
|
|
{
|
|
_success = success;
|
|
_failure = failure;
|
|
}
|
|
|
|
// documentation inherited from interface Subscriber
|
|
public function objectAvailable (obj :DObject) :void
|
|
{
|
|
_success(obj);
|
|
}
|
|
|
|
// documentation inherited from interface Subscriber
|
|
public function requestFailed (oid :int, cause :ObjectAccessError) :void
|
|
{
|
|
_failure(oid, cause);
|
|
}
|
|
|
|
protected var _success :Function;
|
|
protected var _failure :Function;
|
|
}
|
|
}
|