C# Class CorvallisBusWebDNX.Controllers.TransitApiController

Inheritance: Microsoft.AspNet.Mvc.Controller
Show file Open project: RikkiGibson/Corvallis-Bus-Server

Public Methods

Method Description
ParseStopIds ( string stopIds ) : List
TransitApiController ( IApplicationEnvironment appEnv ) : CorvallisBusCoreNetCore

Dependency-injected application settings which are then passed on to other components.

Private Methods

Method Description
GetArrivalsSummary ( string stopIds ) : Task
GetETAs ( string stopIds ) : Task
GetFavoritesViewModel ( string location, string stops ) : Task
GetSchedule ( string stopIds ) : Task
GetStaticData ( ) : Task
Index ( ) : Microsoft.AspNet.Mvc.ActionResult
Init ( ) : Task
ParseUserLocation ( string location ) : LatLong?

Generates a new LatLong based on input. Throws an exception if it can't do it.

Method Details

ParseStopIds() public method

public ParseStopIds ( string stopIds ) : List
stopIds string
return List

TransitApiController() public method

Dependency-injected application settings which are then passed on to other components.
public TransitApiController ( IApplicationEnvironment appEnv ) : CorvallisBusCoreNetCore
appEnv IApplicationEnvironment
return CorvallisBusCoreNetCore