C# Class TrolleyTracker.Models.StopArrivalTime

Show file Open project: codeforgreenville/trolley-tracker-api-dot-net

Public Methods

Method Description
GetStopSummaryWithArrivalTimes ( int stopId ) : StopSummary
Initialize ( ) : void
UpdateTrolleyStopArrivalTime ( Trolley trolley ) : void

Check and record time seen at each stop

Private Methods

Method Description
CheckForStopInRange ( Trolley trolley, Coordinate currentLocation ) : void

Check for stop proximity - try to minimize number of polled stops - First preference is the previous stop Then loop through all stops

UpdateStopList ( ) : void

Get local stop list structure. Stops don't change frequently, so this needs to be updated only once per hour or so

UpdateStopTime ( Trolley trolley ) : void

Method Details

GetStopSummaryWithArrivalTimes() public static method

public static GetStopSummaryWithArrivalTimes ( int stopId ) : StopSummary
stopId int
return TrolleyTracker.ViewModels.StopSummary

Initialize() public static method

public static Initialize ( ) : void
return void

UpdateTrolleyStopArrivalTime() public static method

Check and record time seen at each stop
public static UpdateTrolleyStopArrivalTime ( Trolley trolley ) : void
trolley Trolley
return void