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

Data Collector Single Result Object #859

Merged
merged 2 commits into from
Dec 18, 2023
Merged

Data Collector Single Result Object #859

merged 2 commits into from
Dec 18, 2023

Conversation

sarahkoop
Copy link
Contributor

Summary of changes

Checklist

  • Added a changelog entry

Authors

@sarahkoop sarahkoop requested a review from a team as a code owner December 15, 2023 16:23
dataCollector.collectDeviceData(context) { result ->
if (result is DataCollectorResult.Success) {
// send result.deviceData to your server
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we want to show handling the error result here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I didn't include it because technically they can still proceed without the device data, so on error, just don't send the device data

Copy link
Collaborator

Choose a reason for hiding this comment

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

Got it, that makes sense

@sarahkoop sarahkoop merged commit d1fe780 into v5 Dec 18, 2023
3 checks passed
@sarahkoop sarahkoop deleted the data_collector_result branch December 18, 2023 16:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants