public class PlatformDetails extends Object
Constructor and Description |
---|
PlatformDetails(String serverAPIKey,
String applicationName,
String platformPrincipal,
String platformName) |
Modifier and Type | Method and Description |
---|---|
String |
getApplicationName()
Name of which Amazon SNS Platform Application is to be created
|
static Map<String,com.amazonaws.services.sns.model.MessageAttributeValue> |
getAttributes()
Message Attributes depending on the Platform Type
|
String |
getPlatformPrincipal()
Platform Principal is received from the notification service.
Platform Principal Value for different Services are
APNS/APNS_SANDBOX : "SSL certificate".
GCM : not applicable.
ADM : "client id".
|
Platform |
getPlatformType()
Platform to be used for sending Push Notification.
Supported push notification services
|
String |
getServerAPIKey()
Server API Key generated from the Google API Project
|
void |
setApplicationName(String applicationName)
Name of which Amazon SNS Platform Application is to be created
|
static void |
setAttributes(Map<String,com.amazonaws.services.sns.model.MessageAttributeValue> attributes)
Message Attributes depending on the Platform Type
|
void |
setPlatformPrincipal(String platformPrincipal)
Platform Principal is received from the notification service.
Platform Principal Value for different Services are
APNS/APNS_SANDBOX : "SSL certificate".
GCM : not applicable.
ADM : "client id".
|
void |
setPlatformType(Platform platformType)
Platform to be used for sending Push Notification.
Supported push notification services
|
void |
setServerAPIKey(String serverAPIKey)
Server API Key generated from the Google API Project
|
public PlatformDetails(String serverAPIKey, String applicationName, String platformPrincipal, String platformName)
serverAPIKey
- : generated from the Google API ProjectapplicationName
- : Name of which Amazon SNS Platform Application is to be createdplatformPrincipal
- platformName
- : Name of the Platform to be used for sending Push Notification.public String getServerAPIKey()
public void setServerAPIKey(String serverAPIKey)
public String getApplicationName()
public void setApplicationName(String applicationName)
public String getPlatformPrincipal()
public void setPlatformPrincipal(String platformPrincipal)
public Platform getPlatformType()
Platform
public void setPlatformType(Platform platformType)
Platform
public static Map<String,com.amazonaws.services.sns.model.MessageAttributeValue> getAttributes()
Copyright © 2018. All rights reserved.