C# Class ActivEarth.DAO.ActiveRouteDAO

显示文件 Open project: mlcamilli/ActivEarth

Public Methods

Method 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

Method 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 method

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
return int

GetRoutesFromUserId() public static method

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