amazfitbiptools/WatchFace.Parser/Elements/WeatherElements/WeatherIcon.cs

29 lines
758 B
C#
Raw Normal View History

using System.Runtime.Serialization;
using Newtonsoft.Json;
using WatchFace.Parser.Attributes;
2017-11-25 15:42:48 +01:00
using WatchFace.Parser.Elements.BasicElements;
2017-11-23 13:49:48 +01:00
namespace WatchFace.Parser.Elements.WeatherElements
{
public class WeatherIcon
{
[ParameterId(1)]
public Coordinates Coordinates { get; set; }
2018-01-13 16:43:09 +01:00
[ParameterId(2)]
public CustomWeatherIcon CustomIcon { get; set; }
[ParameterId(3)]
public Coordinates CoordinatesAlt { get; set; }
[ParameterId(4)]
public Coordinates Unknown4 { get; set; }
// For compatibility with "Unknown3" JSON attribute
[JsonProperty("Unknown3")]
private Coordinates Unknown3
{
2018-01-10 09:27:13 +01:00
set { CoordinatesAlt = value; }
}
}
}