public class Settings
extends java.lang.Object
Constructor and Description |
---|
Settings(java.lang.String appToken)
Initializes a settings object with the given app token.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAppToken()
The app token corresponding to your application.
|
java.lang.String |
getJWT()
The JSON web token used to secure calls to SupportKit
The default value is empty string.
|
java.lang.String |
getServiceHost() |
java.lang.String |
getUserId()
The User ID used to identify the user
The default value is empty string.
|
boolean |
isGoogleCloudMessagingAutoRegistrationEnabled()
A boolean property that indicates whether SupportKit should manage the Google Cloud Messaging registration.
|
void |
setGoogleCloudMessagingAutoRegistrationEnabled(boolean googleCloudMessagingAutoRegistrationEnabled)
A boolean property that indicates whether SupportKit should manage the Google Cloud Messaging registration.
|
void |
setJWT(java.lang.String jwt)
The JSON web token used to secure calls to SupportKit
The default value is empty string.
|
void |
setServiceHost(java.lang.String serviceHost) |
void |
setUserId(java.lang.String userId)
The User ID used to identify the user
The default value is empty string.
|
public Settings(java.lang.String appToken)
appToken
- A valid app token retrieved from the SupportKit web portal.public java.lang.String getAppToken()
public boolean isGoogleCloudMessagingAutoRegistrationEnabled()
public void setGoogleCloudMessagingAutoRegistrationEnabled(boolean googleCloudMessagingAutoRegistrationEnabled)
googleCloudMessagingAutoRegistrationEnabled
- Is Google Cloud Messaging auto registration enabledpublic java.lang.String getJWT()
public void setJWT(java.lang.String jwt)
jwt
- The JWT.public java.lang.String getUserId()
public void setUserId(java.lang.String userId)
userId
- The User ID.public java.lang.String getServiceHost()
public void setServiceHost(java.lang.String serviceHost)