20 lines
464 B
C#
20 lines
464 B
C#
using Newtonsoft.Json;
|
|
using Newtonsoft.Json.Converters;
|
|
|
|
namespace SocialWeather
|
|
{
|
|
public enum Weather { Sunny, MostlySunny, PartlySunny, PartlyCloudy, MostlyCloudy, Cloudy }
|
|
|
|
public class WeatherReport
|
|
{
|
|
public int Temperature { get; set; }
|
|
|
|
public long ReportTime { get; set; }
|
|
|
|
[JsonConverter(typeof(StringEnumConverter))]
|
|
public Weather Weather { get; set; }
|
|
|
|
public string ZipCode { get; set; }
|
|
}
|
|
}
|