C# Class ITimeU.Models.RuntimeModel

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

Méthodes publiques

Méthode Description
Create ( int runtime, int checkpointId ) : RuntimeModel

Creates a runtime in the database.

DeleteRuntime ( int runtimeid ) : void

Deletes the runtime.

EditRuntime ( int runtimeid, int newRuntime ) : void
EditRuntime ( int runtimeid, int h, int m, int s, int ms ) : void
GetRuntimes ( int checkpointId ) : int>.Dictionary

Gets the runtimes.

RuntimeModel ( ) : System
Update ( ) : void
getById ( int runtimeId ) : RuntimeModel

Gets a runtime with the given id from the database.

Private Methods

Méthode Description
CreateDbEntity ( int runtime, int checkpointId ) : Runtime
RuntimeModel ( int _id, int _runtime, int _checkpointId ) : System
SaveToDb ( Runtime runtimeDb ) : void

Method Details

Create() public static méthode

Creates a runtime in the database.
public static Create ( int runtime, int checkpointId ) : RuntimeModel
runtime int The runtime in milliseconds.
checkpointId int
Résultat RuntimeModel

DeleteRuntime() public static méthode

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

EditRuntime() public static méthode

public static EditRuntime ( int runtimeid, int newRuntime ) : void
runtimeid int
newRuntime int
Résultat void

EditRuntime() public static méthode

public static EditRuntime ( int runtimeid, int h, int m, int s, int ms ) : void
runtimeid int
h int
m int
s int
ms int
Résultat void

GetRuntimes() public static méthode

Gets the runtimes.
public static GetRuntimes ( int checkpointId ) : int>.Dictionary
checkpointId int The checkpoint id.
Résultat int>.Dictionary

RuntimeModel() public méthode

public RuntimeModel ( ) : System
Résultat System

Update() public méthode

public Update ( ) : void
Résultat void

getById() public static méthode

Gets a runtime with the given id from the database.
public static getById ( int runtimeId ) : RuntimeModel
runtimeId int
Résultat RuntimeModel