CalStoreSupportedCountriesRequest Class Reference
Inherits from | CalStoreObject : NSObject |
---|---|
Declared in | CalStoreSupportedCountriesRequest.h |
Creating
+ request
Creates a new request for all supported countries
+ (instancetype)request
Return Value
CalStoreSupportedCountriesRequest that will request all supported countries
Discussion
Note: this only creates a request, use fetchWithCompletionHandler: to start requesting the page.
Declared In
CalStoreSupportedCountriesRequest.h
Authorization
authorizationToken
The AuthorizationToken being used for this request. Defaults to [
[CalStoreController sharedController]](../Classes/CalStoreController.html#//api/name/sharedController).authorizationToken
.
@property (nonatomic, strong) NSString *authorizationToken
See Also
Declared In
CalStoreSupportedCountriesRequest.h
Fetching Countries
fetching
YES iff this object is busy fetching countries.
@property (nonatomic, getter=isFetching, readonly) BOOL fetching
Declared In
CalStoreSupportedCountriesRequest.h
– fetchWithCompletionHandler:
Fetches all supported countries asynchronously.
- (void)fetchWithCompletionHandler:(CalStoreSupportedCountriesRequestCompletionHandler)completionHandler
Parameters
completionHandler |
block that will be invoked on the main queue if the fetch operation finishes. Check the error parameter of the block to see if the request succeeded. Countries will be returned as an array of CalStoreCountry objects. |
---|
Declared In
CalStoreSupportedCountriesRequest.h