Open dhylands opened 8 years ago
I have been thinking about setters that return values and it's actually relatively complicated. Once we have landed Decentralized Taxonomy, I believe that this can be added, but it will make the definition of Feature
s more complicated for adapter developers, unless we restrict ourselves to, say, returning a free-form String
.
A free form string can contain arbitrary JSON, so it still pretty much allows for arbitrary returns.
An examples where the setter returns a value, would be when you issue a take_snapshot command.
This will create an image, and perhaps a getter. If it creates a getter, it would be nice to know the id of the getter which was just created (the id that corresponds to the snapshot I just took).
I think that this will be important for retrieving historical data. i.e. we record someplace that we took a picture at this time with this ID so that it can be retrieved later.