-
Notifications
You must be signed in to change notification settings - Fork 44
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
Review rxv.py and refactor #31
Comments
Here are some random ideas on breaking up the code a bit. They might be a bridge too far in refactoring.
For instance:
Then calling code would look like:
We could have a PlayGetResponse class that's responsible for the parsing (and also a good place in the code to document what the return document is going to look like (I've been writing some notes locally, but a standard place to do that in code would be nice). That takes a bunch of internal complexity out of the methods in the main class, and makes it more of high level flow:
|
Also, totally random bonus points if someone cracks the yamaha icon format that exists as part of the status. There is definitely a bitmap in there somewhere, as it's how both the app and the TV ui display an icon for net radio stations. |
TODO:
The text was updated successfully, but these errors were encountered: