public class PlatformStatsRequest extends java.lang.Object implements Request<PlatformStatsResponse>
UrbanAirshipClient
Request.HttpMethod
CONTENT_ENCODING_GZIP, CONTENT_TYPE_JSON, CONTENT_TYPE_TEXT_CSV, UA_VERSION_CSV, UA_VERSION_JSON
Modifier and Type | Method and Description |
---|---|
boolean |
bearerTokenAuthRequired() |
boolean |
canUseBearerTokenAuth() |
ContentType |
getContentType() |
Request.HttpMethod |
getHttpMethod() |
java.lang.String |
getRequestBody() |
java.util.Map<java.lang.String,java.lang.String> |
getRequestHeaders() |
ResponseParser<PlatformStatsResponse> |
getResponseParser() |
java.net.URI |
getUri(java.net.URI baseUri) |
static PlatformStatsRequest |
newRequest(PlatformStatsRequestType type)
Create a platform stats request.
|
static PlatformStatsRequest |
newRequest(java.net.URI nextPage)
Create a new platform stats request listing using a next page URI.
|
PlatformStatsRequest |
setEnd(DateTime end)
Set the request end date
|
PlatformStatsRequest |
setPrecision(Precision precision)
Set the request precision
|
PlatformStatsRequest |
setStart(DateTime start)
Set the request start date
|
public static PlatformStatsRequest newRequest(PlatformStatsRequestType type)
type
- PlatformStatsRequestTypepublic static PlatformStatsRequest newRequest(java.net.URI nextPage)
nextPage
- URIpublic PlatformStatsRequest setStart(DateTime start)
start
- DateTimepublic PlatformStatsRequest setEnd(DateTime end)
end
- DateTimepublic PlatformStatsRequest setPrecision(Precision precision)
precision
- Precisionpublic ContentType getContentType()
getContentType
in interface Request<PlatformStatsResponse>
public java.util.Map<java.lang.String,java.lang.String> getRequestHeaders()
getRequestHeaders
in interface Request<PlatformStatsResponse>
public Request.HttpMethod getHttpMethod()
getHttpMethod
in interface Request<PlatformStatsResponse>
public java.lang.String getRequestBody()
getRequestBody
in interface Request<PlatformStatsResponse>
public java.net.URI getUri(java.net.URI baseUri)
getUri
in interface Request<PlatformStatsResponse>
public ResponseParser<PlatformStatsResponse> getResponseParser()
getResponseParser
in interface Request<PlatformStatsResponse>
public boolean bearerTokenAuthRequired()
bearerTokenAuthRequired
in interface Request<PlatformStatsResponse>
public boolean canUseBearerTokenAuth()
canUseBearerTokenAuth
in interface Request<PlatformStatsResponse>