public class NamedUserRequest extends java.lang.Object implements Request<GenericResponse>
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<GenericResponse> |
getResponseParser() |
java.net.URI |
getUri(java.net.URI baseUri) |
static NamedUserRequest |
newAssociationRequest()
Create a named user association request.
|
static NamedUserRequest |
newDisassociationRequest()
Create a named user disassociation request.
|
NamedUserRequest |
setChannel(java.lang.String channelId,
ChannelType channelType)
Set the request channel.
|
NamedUserRequest |
setEmail(java.lang.String email)
Set an email address to associate or disassociate.
|
NamedUserRequest |
setNamedUserId(java.lang.String namedUserId)
Set the request named user ID - optional for disassociation requests.
|
public static NamedUserRequest newAssociationRequest()
public static NamedUserRequest newDisassociationRequest()
public NamedUserRequest setChannel(java.lang.String channelId, ChannelType channelType)
channelId
- The channel ID as a stringchannelType
- The channel platform as a ChannelTypepublic NamedUserRequest setEmail(java.lang.String email)
email
- Stringpublic NamedUserRequest setNamedUserId(java.lang.String namedUserId)
namedUserId
- Stringpublic ContentType getContentType()
getContentType
in interface Request<GenericResponse>
public java.util.Map<java.lang.String,java.lang.String> getRequestHeaders()
getRequestHeaders
in interface Request<GenericResponse>
public Request.HttpMethod getHttpMethod()
getHttpMethod
in interface Request<GenericResponse>
public java.lang.String getRequestBody()
getRequestBody
in interface Request<GenericResponse>
public java.net.URI getUri(java.net.URI baseUri)
getUri
in interface Request<GenericResponse>
public ResponseParser<GenericResponse> getResponseParser()
getResponseParser
in interface Request<GenericResponse>
public boolean bearerTokenAuthRequired()
bearerTokenAuthRequired
in interface Request<GenericResponse>
public boolean canUseBearerTokenAuth()
canUseBearerTokenAuth
in interface Request<GenericResponse>