Package com.zendesk.sdk.model.push
Class PushRegistrationRequest
- java.lang.Object
-
- com.zendesk.sdk.model.push.PushRegistrationRequest
-
- Direct Known Subclasses:
- AnonymousPushRegistrationRequest, JwtPushRegistrationRequest
public abstract class PushRegistrationRequest extends java.lang.Object
Models the api request which is formed when registering a device for push notifications.This is the base class, for calling
com.zendesk.sdk.network.impl.ZendeskPushRegistrationService#registerDevice(String, PushRegistrationRequestWrapper, ZendeskCallback)
useAnonymousPushRegistrationRequest
orJwtPushRegistrationRequest
-
-
Constructor Summary
Constructors Constructor and Description PushRegistrationRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.String
getIdentifier()
Gets the push registration identifierjava.lang.String
getLocale()
Gets the localejava.lang.String
getTokenType()
Gets the type of the tokenvoid
setIdentifier(java.lang.String identifier)
Sets an identifiervoid
setLocale(java.lang.String locale)
Sets the device localevoid
setTokenType(java.lang.String tokenType)
Sets a token type
-
-
-
Method Detail
-
setLocale
public void setLocale(java.lang.String locale)
Sets the device locale- Parameters:
locale
- The locale of the device in the format of ll-cc. en-us, en-ca. The country
-
setIdentifier
public void setIdentifier(java.lang.String identifier)
Sets an identifier- Parameters:
identifier
- The identifier
-
setTokenType
public void setTokenType(java.lang.String tokenType)
Sets a token type- Parameters:
tokenType
- The token type
-
getIdentifier
public java.lang.String getIdentifier()
Gets the push registration identifier- Returns:
- the push identifier
-
getLocale
public java.lang.String getLocale()
Gets the locale- Returns:
- the locale
-
getTokenType
public java.lang.String getTokenType()
Gets the type of the token- Returns:
- the token type
-
-