use of com.amazonaws.services.cognitosync.model.UnsubscribeFromDatasetRequest in project amazon-cognito-android by aws.
the class CognitoSyncStorage method unsubscribeFromDataset.
@Override
public void unsubscribeFromDataset(String datasetName, String deviceId) {
String identityId = provider.getIdentityId();
UnsubscribeFromDatasetRequest request = new UnsubscribeFromDatasetRequest().withIdentityPoolId(provider.getIdentityPoolId()).withIdentityId(identityId).withDatasetName(datasetName).withDeviceId(deviceId);
try {
client.unsubscribeFromDataset(request);
} catch (AmazonClientException ace) {
Log.e(TAG, "Failed to unsubscribe from dataset", ace);
throw new UnsubscribeFailedException("Failed to unsubscribe from dataset", ace);
}
}
Aggregations