C# 클래스 ActivEarth.DAO.ActiveRouteDAO

파일 보기 프로젝트 열기: mlcamilli/ActivEarth

공개 메소드들

메소드 설명
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.

비공개 메소드들

메소드 설명
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.

메소드 상세

AddNewRoute() 공개 정적인 메소드

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
리턴 int

GetRoutesFromUserId() 공개 정적인 메소드

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