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.ObjectModels 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)useAnonymousPushRegistrationRequestorJwtPushRegistrationRequest
-
-
Constructor Summary
Constructors Constructor and Description PushRegistrationRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.StringgetIdentifier()Gets the push registration identifierjava.lang.StringgetLocale()Gets the localejava.lang.StringgetTokenType()Gets the type of the tokenvoidsetIdentifier(java.lang.String identifier)Sets an identifiervoidsetLocale(java.lang.String locale)Sets the device localevoidsetTokenType(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
-
-