Example #1
0
 private static StationStatus _CreateStationStatus(CyclocityStationData stationData)
 {
     return(StationStatus.Create(
                station: _CreateStation(stationData),
                availableBikes: stationData.AvailableBikes,
                availableStands: stationData.AvailableBikeStands));
 }
 private static StationStatus _CreateStationStatus(CyclocityStationData stationData)
 {
     return StationStatus.Create(
         station: _CreateStation(stationData),
         availableBikes: stationData.AvailableBikes,
         availableStands: stationData.AvailableBikeStands);
 }
Example #3
0
        private static Station _CreateStation(CyclocityStationData stationData)
        {
            var _name = string.Equals(stationData.Name, stationData.Address, StringComparison.OrdinalIgnoreCase)
                ? stationData.Address
                : _FixStationDisplayNameCapitalization(stationData.Name);

            return(Station.Create(
                       id: stationData.Number,
                       displayName: _name,
                       location: GeoCoordinate.Create(latitude: stationData.PositionLatitude, longitude: stationData.PositoinLongitude),
                       stands: stationData.BikeStands));
        }
        private static Station _CreateStation(CyclocityStationData stationData)
        {
            var _name = string.Equals(stationData.Name, stationData.Address, StringComparison.OrdinalIgnoreCase)
                ? stationData.Address
                : _FixStationDisplayNameCapitalization(stationData.Name);

            return Station.Create(
                id: stationData.Number,
                displayName: _name,
                location: GeoCoordinate.Create(latitude: stationData.PositionLatitude, longitude: stationData.PositoinLongitude),
                stands: stationData.BikeStands);
        }