KHerron / SonyAPILib

Sony Smart Device C# API Library for remote control
GNU Lesser General Public License v3.0
55 stars 19 forks source link

Service Methods #12

Closed KHerron closed 8 years ago

KHerron commented 8 years ago

Looking for input from all users of this API

Currently all service methods of the devices are actually in the API class and not the devices class.

For example, to send a command to your device with the current API structure, you would do something like this: string results = mySonyLib.Ircc.SendIRCC(mySonyDevice,irccCmd); However, this leaves it a bit confusing, because it seems it should be a part of the device.

So, the question is, should I change it to be like this? string results = mySonyDevice.Ircc.SendIRCC(mySonyDevice,irccCmd);

A little redundant, but seems to make more sense.

KHerron commented 8 years ago

After careful consideration, all service methods and properties are now in the SonyDevice class. So future executions of service methods will be done as follows: string results = mySonyDevice.Ircc.SendIRCC(mySonyDevice,irccCmd);