[AS3] Class r1.rpc.RPCResult

[AS3] Class r1.rpc.RPCResult

Client API
Packager1.rpc
Classpublic class RPCResult
InheritanceRPCResult Inheritance flash.events.Event
SubclassesErrorResult

The RPC result object that indicates either a remote call has succeeded or if an exception is thrown. In case of an exception, an instance of ErrorResult is returned, which extends this RPCResult class.

See also



Public Properties
 PropertyDefined by
  errorDetail : ErrorResult
[read-only] The error detail object in case the call failed.
RPCResult
  errorMessage : String
[read-only]
RPCResult
  failed : Boolean
[read-only] A convenience property that checks if the type name is not "success".
RPCResult
  serverMessages : Array
RPCResult
  success : Boolean
[read-only] A convenience property that checks if the type name is "success".
RPCResult
  SUCCESS : RPCResult
[static] The SUCCESS singleton for all successful remote calls.
RPCResult
Public Methods
 MethodDefined by
  
RPCResult(type:String)
RPCResult
Public Constants
 ConstantDefined by
  RPC_MESSAGE : String = "message"
[static]
RPCResult
  RPC_SUCCESS : String = "success"
[static]
RPCResult
Property detail
errorDetailproperty
errorDetail:ErrorResult  [read-only]

The error detail object in case the call failed.

Implementation
    public function get errorDetail():ErrorResult
errorMessageproperty 
errorMessage:String  [read-only]Implementation
    public function get errorMessage():String
failedproperty 
failed:Boolean  [read-only]

A convenience property that checks if the type name is not "success".

Implementation
    public function get failed():Boolean
serverMessagesproperty 
serverMessages:Array  [read-write]Implementation
    public function get serverMessages():Array
    public function set serverMessages(value:Array):void
successproperty 
success:Boolean  [read-only]

A convenience property that checks if the type name is "success".

Implementation
    public function get success():Boolean
SUCCESSproperty 
public static var SUCCESS:RPCResult

The SUCCESS singleton for all successful remote calls.

Constructor detail
RPCResult()constructor
public function RPCResult(type:String)Parameters
type:String
Constant detail
RPC_MESSAGEconstant
public static const RPC_MESSAGE:String = "message"
RPC_SUCCESSconstant 
public static const RPC_SUCCESS:String = "success"