1
|
//
|
2
|
// Author: A. Konig
|
3
|
//
|
4
|
|
5
|
using ServerApp.Parser.OutputInfo;
|
6
|
using System.Collections.Generic;
|
7
|
|
8
|
namespace ServerApp.WeatherPredictionParser
|
9
|
{
|
10
|
/// <summary>
|
11
|
/// Abstract class that every Json parser should inherit from
|
12
|
/// </summary>
|
13
|
public abstract class IJsonParser
|
14
|
{
|
15
|
|
16
|
/// <summary> Current weather </summary>
|
17
|
WeatherInfo current;
|
18
|
public WeatherInfo Current { get => current; set => predictions = value; }
|
19
|
|
20
|
/// <summary> Prediction for today, tommorrow and day after tommorrow </summary>
|
21
|
List<WeatherInfo> predictions;
|
22
|
public List<WeatherInfo> Predictions { get => predictions; set => predictions = value; }
|
23
|
|
24
|
/// <summary>
|
25
|
/// Parse weather prediction
|
26
|
/// Results is in attributes current for current weather and pred for weather prediction for today, tommorrow and day after tommorrow
|
27
|
/// </summary>
|
28
|
abstract public void ParsePrediction();
|
29
|
|
30
|
}
|
31
|
|
32
|
}
|