Пример #1
0
        public HttpResponseMessage DataByCitiesId(MultipleCitiesModel multipleCitiesId)
        {
            IRequestModel tmp    = multipleCitiesId;
            GenerateURL   urlobj = new GenerateURL(Endpoints.ByCitiesId, tmp.Get());

            return(new HttpResponseMessage()
            {
                Content = new StringContent(Test.CreateObject(urlobj.GeneratedURL))
            });
        }
Пример #2
0
        public HttpResponseMessage DataByCitiesCycle(CitiesCycleModel citiesCycle)
        {
            IRequestModel tmp    = citiesCycle;
            GenerateURL   urlobj = new GenerateURL(Endpoints.ByCitiesCycle, tmp.Get());

            return(new HttpResponseMessage()
            {
                Content = new StringContent(Test.CreateObject(urlobj.GeneratedURL))
            });
        }
Пример #3
0
        public HttpResponseMessage DataByRectangleZone(RectangelZoneModel rectangleZone)
        {
            IRequestModel tmp    = rectangleZone;
            GenerateURL   urlobj = new GenerateURL(Endpoints.ByRectangleZone, tmp.Get());

            return(new HttpResponseMessage()
            {
                Content = new StringContent(Test.CreateObject(urlobj.GeneratedURL))
            });
        }
Пример #4
0
        public HttpResponseMessage DataByZipCode(ZipCodeModel zipCode)
        {
            IRequestModel tmp    = zipCode;
            GenerateURL   urlobj = new GenerateURL(Endpoints.ByZipCode, tmp.Get());

            return(new HttpResponseMessage()
            {
                Content = new StringContent(Test.CreateObject(urlobj.GeneratedURL))
            });
        }
Пример #5
0
        public HttpResponseMessage DataByCoordinates(CoordinatesModel coOrdinates)
        {
            IRequestModel tmp    = coOrdinates;
            GenerateURL   urlobj = new GenerateURL(Endpoints.ByCoordinates, tmp.Get());

            return(new HttpResponseMessage()
            {
                Content = new StringContent(Test.CreateObject(urlobj.GeneratedURL))
            });
        }
Пример #6
0
        public HttpResponseMessage DataByName(CityNameModel cityName)
        {
            IRequestModel tmp    = cityName;
            GenerateURL   urlobj = new GenerateURL(Endpoints.ByCityName, tmp.Get());

            var response = new HttpResponseMessage()
            {
                Content = new StringContent(Test.CreateObject(urlobj.GeneratedURL))
            };

            //string str = response.ToString();

            //var yourObject = JsonConvert.DeserializeObject<Weather.Models.Weathers>(str);

            return(response);
        }