svrooij / node-sonos-ts

:speaker: Sonos control library, use this library in your own appliction.
https://sonos-ts.svrooij.io/
MIT License
81 stars 18 forks source link

Describe enums #7

Closed svrooij closed 4 years ago

svrooij commented 4 years ago

Some variables are of type string but show possible values, they should be converted to Enums.

Sample TransportState description:

<stateVariable sendEvents="no">
  <name>TransportState</name>
  <dataType>string</dataType>
  <allowedValueList>
    <allowedValue>STOPPED</allowedValue>
    <allowedValue>PLAYING</allowedValue>
    <allowedValue>PAUSED_PLAYBACK</allowedValue>
    <allowedValue>TRANSITIONING</allowedValue>
  </allowedValueList>
</stateVariable>