示例#1
0
文件: Request.cs 项目: domints/TTSSX
        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));
        }
示例#2
0
文件: Request.cs 项目: domints/TTSSX
 internal static async Task <Response> AllStops()
 {
     return(await HttpHelper.GetString(Addresses.AllStops).ConfigureAwait(false));
 }
示例#3
0
文件: Request.cs 项目: domints/TTSSX
 internal static async Task <Response> AutoComplete(string query)
 {
     return(await HttpHelper.GetString(string.Format(Addresses.Autocomplete, query)).ConfigureAwait(false));
 }
示例#4
0
 internal static async Task <Response> AllRoutes(bool bus = false)
 {
     return(await HttpHelper.GetString(Addresses.AllRoutes, bus).ConfigureAwait(false));
 }