Exemplo n.º 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));
        }
Exemplo n.º 2
0
 internal static async Task <Response> AllStops()
 {
     return(await HttpHelper.GetString(Addresses.AllStops).ConfigureAwait(false));
 }
Exemplo n.º 3
0
 internal static async Task <Response> AutoComplete(string query)
 {
     return(await HttpHelper.GetString(string.Format(Addresses.Autocomplete, query)).ConfigureAwait(false));
 }
Exemplo n.º 4
0
 internal static async Task <Response> AllRoutes(bool bus = false)
 {
     return(await HttpHelper.GetString(Addresses.AllRoutes, bus).ConfigureAwait(false));
 }