C# Class Clock.AlarmDbConnector

Show file Open project: Silveryard/SmartHome

Public Methods

Method Description
AddAlarm ( string name, int hours, int minutes, int seconds, bool mon, bool tue, bool wed, bool thu, bool fri, bool sat, bool sun, bool enabled ) : int
GetAlarm ( int alarm_id ) : Alarm
GetAlarms ( ) : List
Init ( MySqlConnection connection ) : void
ModifyAlarm ( int alarm_id, object>.Dictionary data ) : void
RemoveAlarm ( int alarm_id ) : void

Method Details

AddAlarm() public static method

public static AddAlarm ( string name, int hours, int minutes, int seconds, bool mon, bool tue, bool wed, bool thu, bool fri, bool sat, bool sun, bool enabled ) : int
name string
hours int
minutes int
seconds int
mon bool
tue bool
wed bool
thu bool
fri bool
sat bool
sun bool
enabled bool
return int

GetAlarm() public static method

public static GetAlarm ( int alarm_id ) : Alarm
alarm_id int
return Alarm

GetAlarms() public static method

public static GetAlarms ( ) : List
return List

Init() public static method

public static Init ( MySqlConnection connection ) : void
connection MySql.Data.MySqlClient.MySqlConnection
return void

ModifyAlarm() public static method

public static ModifyAlarm ( int alarm_id, object>.Dictionary data ) : void
alarm_id int
data object>.Dictionary
return void

RemoveAlarm() public static method

public static RemoveAlarm ( int alarm_id ) : void
alarm_id int
return void