C# Class Alarm.ExtentionMethods

Datei anzeigen Open project: Silveryard/SmartHome

Public Methods

Method Description
AddAlarm ( this client, Alarm alarm ) : Alarm
DeleteAlarm ( this client, Alarm alarm ) : void
GetAlarm ( this client, int alarmId ) : Alarm
GetAlarms ( this client ) : List
IndexesOf ( this haystack, string needle ) : IEnumerable
RegisterToAlarmService ( this client, string function ) : void
RegisterToTimeService ( this client, string function ) : void
UpdateAlarm ( this client, Alarm alarm ) : void
UpdateAlarmEnabled ( this client, Alarm alarm ) : void
UpdateAlarmName ( this client, Alarm alarm ) : void
UpdateAlarmTime ( this client, Alarm alarm ) : void
UpdateAlarmWeekdays ( this client, Alarm alarm ) : void

Method Details

AddAlarm() public static method

public static AddAlarm ( this client, Alarm alarm ) : Alarm
client this
alarm Alarm
return Alarm

DeleteAlarm() public static method

public static DeleteAlarm ( this client, Alarm alarm ) : void
client this
alarm Alarm
return void

GetAlarm() public static method

public static GetAlarm ( this client, int alarmId ) : Alarm
client this
alarmId int
return Alarm

GetAlarms() public static method

public static GetAlarms ( this client ) : List
client this
return List

IndexesOf() public static method

public static IndexesOf ( this haystack, string needle ) : IEnumerable
haystack this
needle string
return IEnumerable

RegisterToAlarmService() public static method

public static RegisterToAlarmService ( this client, string function ) : void
client this
function string
return void

RegisterToTimeService() public static method

public static RegisterToTimeService ( this client, string function ) : void
client this
function string
return void

UpdateAlarm() public static method

public static UpdateAlarm ( this client, Alarm alarm ) : void
client this
alarm Alarm
return void

UpdateAlarmEnabled() public static method

public static UpdateAlarmEnabled ( this client, Alarm alarm ) : void
client this
alarm Alarm
return void

UpdateAlarmName() public static method

public static UpdateAlarmName ( this client, Alarm alarm ) : void
client this
alarm Alarm
return void

UpdateAlarmTime() public static method

public static UpdateAlarmTime ( this client, Alarm alarm ) : void
client this
alarm Alarm
return void

UpdateAlarmWeekdays() public static method

public static UpdateAlarmWeekdays ( this client, Alarm alarm ) : void
client this
alarm Alarm
return void