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-3446 Add exportTabularData to DataClient #316

Merged
merged 4 commits into from
Dec 19, 2024

Conversation

katiepeters
Copy link
Member

@katiepeters katiepeters commented Dec 16, 2024

This PR adds the new Data endpoint ExportTabularData to the flutter SDK.

) async* {
final interval = CaptureInterval();
if (startTime != null) {
interval.start = Timestamp()..seconds = Int64((startTime.millisecondsSinceEpoch / 1000).floor());
Copy link
Member

Choose a reason for hiding this comment

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

You can use the Timestamp.fromDateTime constructor to build these

..resourceSubtype = resourceSubtype
..methodName = methodName
..interval = interval;
final responses = _dataClient.exportTabularData(request);
Copy link
Member

Choose a reason for hiding this comment

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

I believe this returns a stream, and you might be able to map this directly, instead of having to iterate and yield like you do below

@katiepeters katiepeters marked this pull request as ready for review December 17, 2024 21:42
@katiepeters katiepeters requested a review from a team as a code owner December 17, 2024 21:42
Copy link
Member

@njooma njooma left a comment

Choose a reason for hiding this comment

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

nice!

@katiepeters katiepeters merged commit 8fc978f into viamrobotics:main Dec 19, 2024
4 checks passed
@katiepeters katiepeters deleted the DATA-3446 branch December 19, 2024 23:13
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.

2 participants