thingsboard / dart_thingsboard_client

ThingsBoard API client library for Dart developers.
BSD 3-Clause "New" or "Revised" License
59 stars 30 forks source link

[Feature] Use map instead of list to pack attributes and timeseries #6

Closed devaskim closed 1 year ago

devaskim commented 2 years ago

Will you approve the PR with the following changes?

  1. Less changes: use Map<String, AttributeKvEntry> instead of List<AttributeKvEntry> in attributes fetching API (one, two).
  2. More changes: 1 + rewrite AttributeKvEntry to store only value and timestamp.

Also I suggest to apply 1 and 2 to timeseries fetching API (one, two)