C# Class TrolleyTracker.Models.StopArrivalTime

Afficher le fichier Open project: codeforgreenville/trolley-tracker-api-dot-net

Méthodes publiques

Méthode Description
GetStopSummaryWithArrivalTimes ( int stopId ) : StopSummary
Initialize ( ) : void
UpdateTrolleyStopArrivalTime ( Trolley trolley ) : void

Check and record time seen at each stop

Private Methods

Méthode 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 méthode

public static GetStopSummaryWithArrivalTimes ( int stopId ) : StopSummary
stopId int
Résultat TrolleyTracker.ViewModels.StopSummary

Initialize() public static méthode

public static Initialize ( ) : void
Résultat void

UpdateTrolleyStopArrivalTime() public static méthode

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