C# Class Contrequarte.SmartPlug.Core.SmartPlugMessages

Exibir arquivo Open project: contrequarte/SmartPlugSP2101W Class Usage Examples

Public Methods

Method Description
GetEntirePowerInfo ( ) : System.Xml.Linq.XDocument
GetEntireScheduling ( bool isSetup ) : System.Xml.Linq.XDocument

Returns a XDocument as template for getting/setting schedules

GetLastToggleTime ( ) : System.Xml.Linq.XDocument
GetNowCurrent ( ) : System.Xml.Linq.XDocument
GetNowEnergy ( EnergyPeriods periodToRequest ) : System.Xml.Linq.XDocument
GetNowPower ( ) : System.Xml.Linq.XDocument
GetPlugState ( ) : System.Xml.Linq.XDocument
GetScheduledListForDayOfWeek ( DayOfWeek dayOfWeek ) : System.Xml.Linq.XDocument
GetSystemInfo ( ) : System.Xml.Linq.XDocument
SetDeviceName ( string nameToSet ) : System.Xml.Linq.XDocument
SetScheduleForDayOfWeek ( DayOfWeek dayOfWeek ) : System.Xml.Linq.XDocument
TogglePlugTo ( SmartPlugState stateToSet ) : System.Xml.Linq.XDocument

Method Details

GetEntirePowerInfo() public static method

public static GetEntirePowerInfo ( ) : System.Xml.Linq.XDocument
return System.Xml.Linq.XDocument

GetEntireScheduling() public static method

Returns a XDocument as template for getting/setting schedules
public static GetEntireScheduling ( bool isSetup ) : System.Xml.Linq.XDocument
isSetup bool true returns a "setup" template, false a "get" template
return System.Xml.Linq.XDocument

GetLastToggleTime() public static method

public static GetLastToggleTime ( ) : System.Xml.Linq.XDocument
return System.Xml.Linq.XDocument

GetNowCurrent() public static method

public static GetNowCurrent ( ) : System.Xml.Linq.XDocument
return System.Xml.Linq.XDocument

GetNowEnergy() public static method

public static GetNowEnergy ( EnergyPeriods periodToRequest ) : System.Xml.Linq.XDocument
periodToRequest EnergyPeriods
return System.Xml.Linq.XDocument

GetNowPower() public static method

public static GetNowPower ( ) : System.Xml.Linq.XDocument
return System.Xml.Linq.XDocument

GetPlugState() public static method

public static GetPlugState ( ) : System.Xml.Linq.XDocument
return System.Xml.Linq.XDocument

GetScheduledListForDayOfWeek() public static method

public static GetScheduledListForDayOfWeek ( DayOfWeek dayOfWeek ) : System.Xml.Linq.XDocument
dayOfWeek DayOfWeek
return System.Xml.Linq.XDocument

GetSystemInfo() public static method

public static GetSystemInfo ( ) : System.Xml.Linq.XDocument
return System.Xml.Linq.XDocument

SetDeviceName() public static method

public static SetDeviceName ( string nameToSet ) : System.Xml.Linq.XDocument
nameToSet string
return System.Xml.Linq.XDocument

SetScheduleForDayOfWeek() public static method

public static SetScheduleForDayOfWeek ( DayOfWeek dayOfWeek ) : System.Xml.Linq.XDocument
dayOfWeek DayOfWeek
return System.Xml.Linq.XDocument

TogglePlugTo() public static method

public static TogglePlugTo ( SmartPlugState stateToSet ) : System.Xml.Linq.XDocument
stateToSet SmartPlugState
return System.Xml.Linq.XDocument