C# Class Contrequarte.SmartPlug.Core.SmartPlug

Datei anzeigen Open project: contrequarte/SmartPlugSP2101W Class Usage Examples

Private Properties

Property Type Description
FillMinuteSchedule void
FillMinuteSchedule void
InitHexSchedule char[]
InitMinuteSchedule int[]
PreparePowerSchedule string
PreparePowerScheduleList string
QuadrupletToHex char
SendMessage System.Xml.Linq.XDocument

Public Methods

Method Description
GetCummulatedPowerConsumption ( EnergyPeriods energyPeriod ) : decimal
GetScheduleForWeekDay ( DayOfWeek dayOfWeek ) : IEnumerable
SetScheduleForWeekDay ( DayOfWeek dayOfWeek, IEnumerable entriesToSchedule ) : void
SmartPlug ( IPAddress ipAddress, SmartPlugDetails details ) : System
SmartPlug ( IPAddress ipAddress, string userName, string password ) : System

Private Methods

Method Description
FillMinuteSchedule ( ScheduledEntry entry, int &minuteSchedule ) : void
FillMinuteSchedule ( int fromHour, int fromMinute, int toHour, int toMinute, int &minuteSchedule ) : void
InitHexSchedule ( ) : char[]
InitMinuteSchedule ( ) : int[]
PreparePowerSchedule ( IEnumerable entriesToSchedule ) : string
PreparePowerScheduleList ( IEnumerable entriesToSchedule ) : string
QuadrupletToHex ( int minuteSchedule, int quadrupletBaseAdress ) : char
SendMessage ( System.Xml.Linq.XDocument xmlMessageToSend ) : System.Xml.Linq.XDocument

Method Details

GetCummulatedPowerConsumption() public method

public GetCummulatedPowerConsumption ( EnergyPeriods energyPeriod ) : decimal
energyPeriod EnergyPeriods
return decimal

GetScheduleForWeekDay() public method

public GetScheduleForWeekDay ( DayOfWeek dayOfWeek ) : IEnumerable
dayOfWeek DayOfWeek
return IEnumerable

SetScheduleForWeekDay() public method

public SetScheduleForWeekDay ( DayOfWeek dayOfWeek, IEnumerable entriesToSchedule ) : void
dayOfWeek DayOfWeek
entriesToSchedule IEnumerable
return void

SmartPlug() public method

public SmartPlug ( IPAddress ipAddress, SmartPlugDetails details ) : System
ipAddress System.Net.IPAddress
details SmartPlugDetails
return System

SmartPlug() public method

public SmartPlug ( IPAddress ipAddress, string userName, string password ) : System
ipAddress System.Net.IPAddress
userName string
password string
return System