C# Class ActivEarth.DAO.ActiveRouteDAO

Afficher le fichier Open project: mlcamilli/ActivEarth

Méthodes publiques

Méthode Description
AddNewRoute ( Route route, string &errorMessage ) : int

Adds a new Route to the database.

GetRoutesFromUserId ( int userId ) : List

Retrieves the collection of routes submitted by a given user.

Private Methods

Méthode Description
MetersToMiles ( double meters ) : double

Converts a distance in meters to a distance in miles.

ProcessRoute ( Route route ) : void

Processes the contents of a route and updates the corresponding user statistics.

Method Details

AddNewRoute() public static méthode

Adds a new Route to the database.
public static AddNewRoute ( Route route, string &errorMessage ) : int
route ActivEarth.Objects.Profile.Route Route to add to the database.
errorMessage string
Résultat int

GetRoutesFromUserId() public static méthode

Retrieves the collection of routes submitted by a given user.
public static GetRoutesFromUserId ( int userId ) : List
userId int Identifier of the user.
Résultat List