Esempio n. 1
0
        static void Main(string[] args)
        {
            var weatherMan = new WeatherMan();

            weatherMan.Location = "2357024";
            var weather = weatherMan.getWeather();

            Console.WriteLine(weather.Temperature + "  " + weather.Condition);
        }
Esempio n. 2
0
        public APIGatewayProxyResponse Get(APIGatewayProxyRequest request, ILambdaContext context)
        {
            var weatherMan = new WeatherMan();

            weatherMan.Location = "2357024";
            weatherMan.DayIndex = 1;
            var weather = weatherMan.getWeather();

            return(CreateResponse(weather));
        }