Package | com.absentdesign.core.webapis.wordpress.methodgroups |
Class | public class WPMethodGroup |
Inheritance | WPMethodGroup ![]() ![]() |
Subclasses | Authors, Blogs, Categories, Comments, Pages, Posts, Tags |
Property | Defined by | ||
---|---|---|---|
blogId : int [read-only]
| WPMethodGroup | ||
password : String [read-only]
| WPMethodGroup | ||
username : String [read-only]
| WPMethodGroup |
Property | Defined by | ||
---|---|---|---|
![]() | helper : MethodGroupHelper | MethodGroup | |
requestArgs : Array | WPMethodGroup | ||
requestFunction : Function | WPMethodGroup | ||
![]() | service : Service | MethodGroup |
Method | Defined by | ||
---|---|---|---|
WPMethodGroup(service:WPService)
| WPMethodGroup | ||
![]() |
load(request:ServiceRequest):void
| MethodGroup | |
loadRequest(request:WPServiceRequest, requestFunction:Function, ... args):void
Load a WPServiceRequest
Automatically calls service.connect() and delays the request until the service is connected if the WPService does not return a valid blogId | WPMethodGroup |
Method | Defined by | ||
---|---|---|---|
processAndDispatch(event:Event):void
Process the result using WPMethodGroupHelper and dispatch a ServiceEvent of type request.eventType with
the parsed data
| WPMethodGroup | ||
serviceConnectedHandler(event:ServiceEvent):void
Re-submits a delayed call if the service needed to connect or was connecting while the call was made
| WPMethodGroup |
blogId | property |
blogId:int
[read-only]Implementation
public function get blogId():int
password | property |
password:String
[read-only]Implementation
public function get password():String
requestArgs | property |
protected var requestArgs:Array
requestFunction | property |
protected var requestFunction:Function
username | property |
username:String
[read-only]Implementation
public function get username():String
WPMethodGroup | () | constructor |
public function WPMethodGroup(service:WPService)
Parameters
service:WPService — The WPService you are using to make the calls
|
loadRequest | () | method |
public function loadRequest(request:WPServiceRequest, requestFunction:Function, ... args):void
Load a WPServiceRequest
Automatically calls service.connect() and delays the request until the service is connected if the WPService does not return a valid blogId
Parametersrequest:WPServiceRequest — The WPServiceRequest
|
|
requestFunction:Function — a direct reference to the function making the loadRequest call - required if you want
to be able to delay the call while the service is connecting
|
|
... args — any arguments for the delayed call
|
processAndDispatch | () | method |
protected override function processAndDispatch(event:Event):void
Process the result using WPMethodGroupHelper and dispatch a ServiceEvent of type request.eventType with the parsed data
Parametersevent:Event |
serviceConnectedHandler | () | method |
protected function serviceConnectedHandler(event:ServiceEvent):void
Re-submits a delayed call if the service needed to connect or was connecting while the call was made
Parametersevent:ServiceEvent |