-
Notifications
You must be signed in to change notification settings - Fork 2
/
Weather.cs
71 lines (62 loc) · 2.24 KB
/
Weather.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
using System.Collections.Generic;
using System;
namespace habraweatherappconsole
{
public class Headline {
public DateTime EffectiveDate { get; set; }
public int EffectiveEpochDate { get; set; }
public int Severity { get; set; }
public string Text { get; set; }
public string Category { get; set; }
public DateTime EndDate { get; set; }
public int EndEpochDate { get; set; }
public string MobileLink { get; set; }
public string Link { get; set; }
}
public class Minimum {
public double Value { get; set; }
public string Unit { get; set; }
public int UnitType { get; set; }
}
public class Maximum {
public double Value { get; set; }
public string Unit { get; set; }
public int UnitType { get; set; }
}
public class Temperature {
public Minimum Minimum { get; set; }
public Maximum Maximum { get; set; }
}
public class Day {
public int Icon { get; set; }
public string IconPhrase { get; set; }
public bool HasPrecipitation { get; set; }
public string PrecipitationType { get; set; }
public string PrecipitationIntensity { get; set; }
}
public class Night {
public int Icon { get; set; }
public string IconPhrase { get; set; }
public bool HasPrecipitation { get; set; }
public string PrecipitationType { get; set; }
public string PrecipitationIntensity { get; set; }
}
public class DailyForecast {
public DateTime Date { get; set; }
public int EpochDate { get; set; }
public Temperature Temperature { get; set; }
public Day Day { get; set; }
public Night Night { get; set; }
public List<string> Sources { get; set; }
public string MobileLink { get; set; }
public string Link { get; set; }
}
/// <summary>
/// Класс реализует возможность хранения информации о погоде
///
/// </summary>
public class RootWeather {
public Headline Headline { get; set; }
public List<DailyForecast> DailyForecasts { get; set; }
}
}