C# Class Clock.AlarmDbConnector

Afficher le fichier Open project: Silveryard/SmartHome

Méthodes publiques

Méthode 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 méthode

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
Résultat int

GetAlarm() public static méthode

public static GetAlarm ( int alarm_id ) : Alarm
alarm_id int
Résultat Alarm

GetAlarms() public static méthode

public static GetAlarms ( ) : List
Résultat List

Init() public static méthode

public static Init ( MySqlConnection connection ) : void
connection MySql.Data.MySqlClient.MySqlConnection
Résultat void

ModifyAlarm() public static méthode

public static ModifyAlarm ( int alarm_id, object>.Dictionary data ) : void
alarm_id int
data object>.Dictionary
Résultat void

RemoveAlarm() public static méthode

public static RemoveAlarm ( int alarm_id ) : void
alarm_id int
Résultat void