C# 클래스 Clock.AlarmDbConnector

파일 보기 프로젝트 열기: Silveryard/SmartHome

공개 메소드들

메소드 설명
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

메소드 상세

AddAlarm() 공개 정적인 메소드

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
리턴 int

GetAlarm() 공개 정적인 메소드

public static GetAlarm ( int alarm_id ) : Alarm
alarm_id int
리턴 Alarm

GetAlarms() 공개 정적인 메소드

public static GetAlarms ( ) : List
리턴 List

Init() 공개 정적인 메소드

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

ModifyAlarm() 공개 정적인 메소드

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

RemoveAlarm() 공개 정적인 메소드

public static RemoveAlarm ( int alarm_id ) : void
alarm_id int
리턴 void