Closed KevinAnthony closed 6 years ago
Yes, sounds good. But are these the only possible values of the light.type field? The documentation has no specification and it might change and break the library in the future.
Maybe it's better to create an extra property, so we keep the raw string value, and an extra Unknown enum value for unknown types?
Are you able to make a Pull Request? That would be awesome. Thanks!
I think it's best to create an extension method for this.
It would be very useful if we replaced the state.Type of lights with a enum rather then a string. something like
and you could parse the incoming values like this