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)) }); }
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)) }); }
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)) }); }
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)) }); }
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)) }); }
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); }