コード例 #1
0
ファイル: Program.cs プロジェクト: bassettb/NetCoreSample
        static void Main(string[] args)
        {
            var weatherMan = new WeatherMan();

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

            Console.WriteLine(weather.Temperature + "  " + weather.Condition);
        }
コード例 #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));
        }