示例#1
0
        public static async Task <ILocations[]> GetLocations(string provider, string query)
        {
            switch (provider.ToLower())
            {
            case "hemnet":
            {
                return(await HemnetPricer.GetAreaIdStatic(query));
            }

            case "booli":
            {
                return(await BooliPricer.GetAreaIdStatic(query));
            }
            }

            return(new List <EmptyLocations>().ToArray());
        }
示例#2
0
 public async Task <ILocations[]> GetAreaId(string query)
 {
     return(await BooliPricer.GetAreaIdStatic(query));
 }