C# Class ITimeU.Models.TimerModel

Afficher le fichier Open project: heinek/ITimeU Class Usage Examples

Méthodes publiques

Свойство Type Description
endTime DateTime?

Méthodes publiques

Méthode Description
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.

Private Methods

Méthode Description
CreateDbEntity ( ) : int

Creates the db entity.

updateDbEntry ( ) : void

Updates the db entry.

Method Details

AddRuntime() public méthode

Adds the runtime.
public AddRuntime ( int milliseconds, int checkpointid ) : RuntimeModel
milliseconds int The milliseconds.
checkpointid int The checkpointid.
Résultat RuntimeModel

AddRuntime() public méthode

Adds the runtime.
public AddRuntime ( RuntimeModel runtimemodel ) : void
runtimemodel RuntimeModel The runtimemodel.
Résultat void

ChangeCheckpoint() public méthode

Changes the checkpoint.
public ChangeCheckpoint ( int checkpointid ) : void
checkpointid int The checkpointid.
Résultat void

Delete() public méthode

Deletes this timer.
public Delete ( ) : void
Résultat void

DeleteRuntime() public méthode

Deletes the runtime.
public DeleteRuntime ( RuntimeModel runtime ) : void
runtime RuntimeModel The runtime.
Résultat void

DeleteRuntime() public méthode

Deletes the runtime.
public DeleteRuntime ( int runtimeid ) : void
runtimeid int The runtimeid.
Résultat void

EditRuntime() public méthode

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

Equals() public méthode

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

GetCheckpoints() public méthode

Gets all the checkpoints for .
public GetCheckpoints ( ) : List
Résultat List

GetFirstCheckpointId() public méthode

Gets the first checkpoint.
public GetFirstCheckpointId ( ) : int
Résultat int

GetHashCode() public méthode

public GetHashCode ( ) : int
Résultat int

GetTimerById() public static méthode

Gets the timer by id.
public static GetTimerById ( int id ) : TimerModel
id int The id.
Résultat TimerModel

GetTimers() public static méthode

public static GetTimers ( int raceId ) : List
raceId int
Résultat List

SaveToDb() public méthode

Saves the stop time stamp to db.
public SaveToDb ( ) : void
Résultat void

Start() public méthode

public Start ( ) : void
Résultat void

Stop() public méthode

Stops the timer.
public Stop ( ) : void
Résultat void

TimerModel() public méthode

Initializes a new instance of the TimerModel class.
public TimerModel ( ) : System
Résultat System

TimerModel() public méthode

Initializes a new instance of the TimerModel class.
public TimerModel ( Timer timer ) : System
timer Timer The timer.
Résultat System

TimerModel() public méthode

Initializes a new instance of the TimerModel class.
public TimerModel ( int id ) : System
id int The id.
Résultat System

ToString() public méthode

Returns a System.String that represents this instance.
public ToString ( ) : string
Résultat string

Property Details

endTime public_oe property

public DateTime? endTime
Résultat DateTime?