public async Task <SortedDictionary <string, StoppingTimeManager> > GetArivalsList(StoppingPlace stop, DateTime date) { var http = new Http.API(); var stoppingTimeManager = (HttpResult)await http.GetStop(stop, date); var sortedList = ((StoppingTimeManager)stoppingTimeManager.Data).Sort(); return(sortedList); }
public async Task <StoppingTimeManager> GetArivalsList(StoppingPlace from, StoppingPlace to, DateTime date) { var http = new Http.API(); HttpResult stoppingTimeManager; if (to == null) { stoppingTimeManager = (HttpResult)await http.GetStop(from, date); var sortedList = ((StoppingTimeManager)stoppingTimeManager.Data); return(sortedList); } return(null); }