Skip to content
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

Static/Hard-Coded API Methods? #9

Open
waynehaffenden opened this issue Jun 7, 2017 · 0 comments
Open

Static/Hard-Coded API Methods? #9

waynehaffenden opened this issue Jun 7, 2017 · 0 comments

Comments

@waynehaffenden
Copy link
Owner

Currently, this module just provides an invoke method so that any method from any version and protocol can be invoked without having each one being statically defined. The idea behind this is that no matter what firmware version or model you have the methods you have available to you are the ones you can invoke.

I wonder if it will make this module much easier to use if we define all the API methods and just throw a "not supported" exception for methods that might not actually be available? We could still provide the invoke method and under the hood could use the invoke method so they just become syntactical sugar in reality.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant