C# Класс ITimeU.Models.TimerModel

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
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?