Beispiel #1
0
 public void CacheLastUpdates(DateTime tripDataLu, DateTime busStopDataLu, DateTime busLineDataLu, DateTime stopInTripDataLu, DateTime expeditionDataLu)
 {
     CacheService.CacheData(tripDataLu, CacheKeys.TRIP_DATA_LAST_UPDATE);
     CacheService.CacheData(busStopDataLu, CacheKeys.BUS_STOP_DATA_LAST_UPDATE);
     CacheService.CacheData(busLineDataLu, CacheKeys.BUS_LINE_DATA_LAST_UPDATE);
     CacheService.CacheData(expeditionDataLu, CacheKeys.EXPEDITION_LAST_UPDATE);
     CacheService.CacheData(stopInTripDataLu, CacheKeys.STOP_IN_TRIP_DATA_LAST_UPDATE);
 }
Beispiel #2
0
        public async Task <MarkerModel[]> GetMarkerList()
        {
            var markerList = new MarkerListModel();
            var busStops   = await _publicTransportService.GetBusStops();

            foreach (var stop in busStops.Stops)
            {
                markerList.Markers.Add(MarkerMapper(stop));
            }

            var markersArray = markerList.Markers.ToArray();

            _cacheService.CacheData(markersArray, CacheKeys.MARKERS_BUS_STOP_DATA);

            return(markersArray);
        }