alexdresko / HSPI

HomeSeer plugin helper framework
MIT License
11 stars 11 forks source link

Hs is protected when it should be public (perhaps with a private setter?) #52

Closed sirmeili closed 7 years ago

sirmeili commented 7 years ago

I can't access the hs property outside of the plugin. I need this so I can break out my config pages into separate classes using the PageBuilder. Right now I can't access things like Hs.GetPageFooter()

alexdresko commented 7 years ago

Would public actually help -- or do you need public static? I can't imagine what your code looks like. Can you share a bit here so I can get a feel for your architecture?

Also, just in case you didn't see what I just posted on the HS forums (@dmurphy too):

sirmeili commented 7 years ago

Actually, I'm not sure. I'm not new to programming, but new to c#.net. I need to be able to access the HS object from another class (one that inherits the PageBuilder class). Even then, I'm not sure public static will help because it needs to be set after the connection to HS is made.

sirmeili commented 7 years ago

I see my mistake! I looked at the code at the B plugin was based off of and I see how it is done there :) I am going to close this. Sorry about the confusion.

alexdresko commented 7 years ago

10-4. Glad it worked out for you. Let me know if you run into any other problems.