Search in sources :

Example 1 with CreatePlatformEndpointRequest

use of com.amazonaws.services.sns.model.CreatePlatformEndpointRequest in project ETSMobile-Android2 by ApplETS.

the class CreateEndpointJob method run.

@Override
public void run() {
    verifyPlatformApplication(this.client);
    try {
        CreatePlatformEndpointResult createResult = client.createPlatformEndpoint(new CreatePlatformEndpointRequest().withPlatformApplicationArn(this.applicationArn).withToken(this.token).withCustomUserData(this.userData));
        Log.i("CreateResult", createResult.toString());
    } catch (AmazonClientException ace) {
        ace.printStackTrace();
    }
}
Also used : CreatePlatformEndpointResult(com.amazonaws.services.sns.model.CreatePlatformEndpointResult) AmazonClientException(com.amazonaws.AmazonClientException) CreatePlatformEndpointRequest(com.amazonaws.services.sns.model.CreatePlatformEndpointRequest)

Aggregations

AmazonClientException (com.amazonaws.AmazonClientException)1 CreatePlatformEndpointRequest (com.amazonaws.services.sns.model.CreatePlatformEndpointRequest)1 CreatePlatformEndpointResult (com.amazonaws.services.sns.model.CreatePlatformEndpointResult)1