public class SLRequest extends NSObject
Constructor and Description |
---|
SLRequest() |
Modifier and Type | Method and Description |
---|---|
ACAccount |
account()
Returns corresponding account object for this request.
|
void |
addMultipartData(NSData data,
String name,
String type,
String filename)
Adds a multipart POST with the specified parameters.
|
Map |
parameters()
Returns a map containing the parameters of this request.
|
void |
performRequestWithHandler(SLRequestHandler handler)
Calls the specified handler for this request.
|
NSURLRequest |
preparedURLRequest()
Returns a prepared URL request.
|
static SLRequest |
requestForServiceType(String serviceType,
int requestMethod,
NSURL url,
Map parameters)
Constructs a SLRequest object with the specified parameter values.
|
int |
requestMethod()
Returns method for this request.
|
void |
setAccount(ACAccount account)
Sets the account for this request.
|
NSURL |
URL()
The URL of this request.
|
addObserver, observeValueForKeyPath, performSelector, performSelectorOnMainThread, release, removeObserver, removeObserver, retain, setValueForKey, setValueForUndefinedKey, valueForKey, valueForUndefinedKey
public static SLRequest requestForServiceType(String serviceType, int requestMethod, NSURL url, Map parameters)
serviceType
- The service type of the social network.requestMethod
- The HTTP request method.url
- The URL of the request.parameters
- The parameters of the request.public ACAccount account()
public void setAccount(ACAccount account)
account
- The account for this request.public int requestMethod()
public NSURL URL()
public Map parameters()
public void addMultipartData(NSData data, String name, String type, String filename)
data
- The data of the multipart POST.name
- The name of the multipart POST.type
- The type of the multipart POST.filename
- The filename of the multipart POST.public NSURLRequest preparedURLRequest()
public void performRequestWithHandler(SLRequestHandler handler)
handler
- The handler for this request.Copyright © 2020. All rights reserved.