Beispiel #1
0
        internal static async Task <Response> TripPassages(string tripId, StopPassagesType type)
        {
            string stype = string.Empty;

            switch (type)
            {
            case StopPassagesType.Arrival:
                stype = "arrival";
                break;

            case StopPassagesType.Departure:
                stype = "departure";
                break;
            }

            return(await HttpHelper.GetString(string.Format(Addresses.TripPassages, tripId, stype)).ConfigureAwait(false));
        }
Beispiel #2
0
 internal static async Task <Response> AllStops()
 {
     return(await HttpHelper.GetString(Addresses.AllStops).ConfigureAwait(false));
 }
Beispiel #3
0
 internal static async Task <Response> AutoComplete(string query)
 {
     return(await HttpHelper.GetString(string.Format(Addresses.Autocomplete, query)).ConfigureAwait(false));
 }
Beispiel #4
0
 internal static async Task <Response> AllRoutes(bool bus = false)
 {
     return(await HttpHelper.GetString(Addresses.AllRoutes, bus).ConfigureAwait(false));
 }