Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add subscription status callback to subscribeToTopic #1086

Merged
merged 4 commits into from
Aug 1, 2019
Merged

Conversation

desokroshan
Copy link
Contributor

Issue #, if available:
#1005

Description of changes:

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@mutablealligator mutablealligator self-assigned this Jul 25, 2019
@mutablealligator mutablealligator added iot Issues with the AWS Android SDK for Internet of Things (IoT) Pull Request labels Jul 25, 2019
// subscribe to MQTT topic
mqttManager.subscribeToTopic("sdk/test/integration/ws", AWSIotMqttQos.QOS0, new AWSIotMqttNewMessageCallback() {
mqttManager.subscribeToTopic("sdk/test/integration/ws", AWSIotMqttQos.QOS0, sscb, new AWSIotMqttNewMessageCallback() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you keep this test and add a new test for subscribeToTopic with callback for subscription status, that way we don't lose the coverage on the original method.

* @param qos Quality of Service Level of the subscription.
* @param subscriptionStatusCallback Callback that will be notified when the subscribe has completed.
* @param callback Callback to be called when new message is received on this
* topic for this subscription.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you add a comment in the Javadoc which says when the callback is invoked and when the AmazonClientException is thrown?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@mutablealligator mutablealligator changed the base branch from master to develop August 1, 2019 21:19
@mutablealligator
Copy link
Contributor

@desokroshan Add the changelog entry.

@desokroshan desokroshan merged commit 5315d01 into develop Aug 1, 2019
@desokroshan desokroshan deleted the Issue#1005 branch August 1, 2019 22:05
awsmobilesdk pushed a commit to awsmobilesdk/aws-sdk-android that referenced this pull request Apr 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
iot Issues with the AWS Android SDK for Internet of Things (IoT)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants