Пример #1
0
        private async Task <string> GetRawPage(VolksbankWebClientOptions options)
        {
            var content = new Dictionary <string, string>
            {
                { "kdnr", options.CustomerId.ToString() },
                { "version", "3" },
                { "pageSize", options.Limit.ToString() },
                { "pageIndex", "0" },
                { "objkat", options.ObjectCategory.ToString() }, // house
                { "geosl", options.GeoSl },
                { "umkreis", options.RadiusInKm.ToString() },
                { "sortOrder", "0_1" }
            };

            var result = await _client.PostAsync("https://cs.immopool.de/CS/getListe", new FormUrlEncodedContent(content));

            return(await result.Content.ReadAsStringAsync());
        }
Пример #2
0
        public async Task <IEnumerable <VolksbankProperty> > GetObjects(VolksbankWebClientOptions options)
        {
            var resultString = await GetRawPage(options);

            return(ParseHtml(resultString));
        }