C# 클래스 ITimeU.Models.TimerModel

파일 보기 프로젝트 열기: heinek/ITimeU 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
endTime DateTime?

공개 메소드들

메소드 설명
AddRuntime ( int milliseconds, int checkpointid ) : RuntimeModel

Adds the runtime.

AddRuntime ( RuntimeModel runtimemodel ) : void

Adds the runtime.

ChangeCheckpoint ( int checkpointid ) : void

Changes the checkpoint.

Delete ( ) : void

Deletes this timer.

DeleteRuntime ( RuntimeModel runtime ) : void

Deletes the runtime.

DeleteRuntime ( int runtimeid ) : void

Deletes the runtime.

EditRuntime ( int runtimeId, int h, int m, int s, int ms ) : void

Edits the runtime.

Equals ( object obj ) : bool

Determines whether the specified System.Object is equal to this instance.

GetCheckpoints ( ) : List

Gets all the checkpoints for .

GetFirstCheckpointId ( ) : int

Gets the first checkpoint.

GetHashCode ( ) : int
GetTimerById ( int id ) : TimerModel

Gets the timer by id.

GetTimers ( int raceId ) : List
SaveToDb ( ) : void

Saves the stop time stamp to db.

Start ( ) : void
Stop ( ) : void

Stops the timer.

TimerModel ( ) : System

Initializes a new instance of the TimerModel class.

TimerModel ( Timer timer ) : System

Initializes a new instance of the TimerModel class.

TimerModel ( int id ) : System

Initializes a new instance of the TimerModel class.

ToString ( ) : string

Returns a System.String that represents this instance.

비공개 메소드들

메소드 설명
CreateDbEntity ( ) : int

Creates the db entity.

updateDbEntry ( ) : void

Updates the db entry.

메소드 상세

AddRuntime() 공개 메소드

Adds the runtime.
public AddRuntime ( int milliseconds, int checkpointid ) : RuntimeModel
milliseconds int The milliseconds.
checkpointid int The checkpointid.
리턴 RuntimeModel

AddRuntime() 공개 메소드

Adds the runtime.
public AddRuntime ( RuntimeModel runtimemodel ) : void
runtimemodel RuntimeModel The runtimemodel.
리턴 void

ChangeCheckpoint() 공개 메소드

Changes the checkpoint.
public ChangeCheckpoint ( int checkpointid ) : void
checkpointid int The checkpointid.
리턴 void

Delete() 공개 메소드

Deletes this timer.
public Delete ( ) : void
리턴 void

DeleteRuntime() 공개 메소드

Deletes the runtime.
public DeleteRuntime ( RuntimeModel runtime ) : void
runtime RuntimeModel The runtime.
리턴 void

DeleteRuntime() 공개 메소드

Deletes the runtime.
public DeleteRuntime ( int runtimeid ) : void
runtimeid int The runtimeid.
리턴 void

EditRuntime() 공개 메소드

Edits the runtime.
public EditRuntime ( int runtimeId, int h, int m, int s, int ms ) : void
runtimeId int The runtime id.
h int The hour.
m int The minutes.
s int The seconds.
ms int
리턴 void

Equals() 공개 메소드

Determines whether the specified System.Object is equal to this instance.
public Equals ( object obj ) : bool
obj object The to compare with this instance.
리턴 bool

GetCheckpoints() 공개 메소드

Gets all the checkpoints for .
public GetCheckpoints ( ) : List
리턴 List

GetFirstCheckpointId() 공개 메소드

Gets the first checkpoint.
public GetFirstCheckpointId ( ) : int
리턴 int

GetHashCode() 공개 메소드

public GetHashCode ( ) : int
리턴 int

GetTimerById() 공개 정적인 메소드

Gets the timer by id.
public static GetTimerById ( int id ) : TimerModel
id int The id.
리턴 TimerModel

GetTimers() 공개 정적인 메소드

public static GetTimers ( int raceId ) : List
raceId int
리턴 List

SaveToDb() 공개 메소드

Saves the stop time stamp to db.
public SaveToDb ( ) : void
리턴 void

Start() 공개 메소드

public Start ( ) : void
리턴 void

Stop() 공개 메소드

Stops the timer.
public Stop ( ) : void
리턴 void

TimerModel() 공개 메소드

Initializes a new instance of the TimerModel class.
public TimerModel ( ) : System
리턴 System

TimerModel() 공개 메소드

Initializes a new instance of the TimerModel class.
public TimerModel ( Timer timer ) : System
timer Timer The timer.
리턴 System

TimerModel() 공개 메소드

Initializes a new instance of the TimerModel class.
public TimerModel ( int id ) : System
id int The id.
리턴 System

ToString() 공개 메소드

Returns a System.String that represents this instance.
public ToString ( ) : string
리턴 string

프로퍼티 상세

endTime 공개적으로 프로퍼티

public DateTime? endTime
리턴 DateTime?