[AS3] Class r1.rpc.RPCResult |
Client API |
| Package | r1.rpc |
| Class | public class RPCResult |
| Inheritance | RPCResult flash.events.Event |
| Subclasses | ErrorResult |
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
| Property | Defined 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
| Method | Defined by | ||
|---|---|---|---|
|
RPCResult(type:String)
| RPCResult | ||
Public Constants
| Constant | Defined by | ||
|---|---|---|---|
| RPC_MESSAGE : String = "message" [static]
| RPCResult | ||
| RPC_SUCCESS : String = "success" [static]
| RPCResult | ||
Property detail
| errorDetail | property |
errorDetail:ErrorResult [read-only]The error detail object in case the call failed.
Implementation public function get errorDetail():ErrorResult
| errorMessage | property |
errorMessage:String [read-only]Implementation
public function get errorMessage():String
| failed | property |
failed:Boolean [read-only]A convenience property that checks if the type name is not "success".
Implementation public function get failed():Boolean
| serverMessages | property |
serverMessages:Array [read-write]Implementation
public function get serverMessages():Array
public function set serverMessages(value:Array):void
| success | property |
success:Boolean [read-only]A convenience property that checks if the type name is "success".
Implementation public function get success():Boolean
| SUCCESS | property |
public static var SUCCESS:RPCResultThe SUCCESS singleton for all successful remote calls.
Constructor detail
| RPCResult | () | constructor |
public function RPCResult(type:String)Parameters
type:String |
Constant detail
| RPC_MESSAGE | constant |
public static const RPC_MESSAGE:String = "message"
| RPC_SUCCESS | constant |
public static const RPC_SUCCESS:String = "success"
flash.events.Event