1
|
//
|
2
|
// Author: A. Konig
|
3
|
//
|
4
|
|
5
|
using ServerApp.Parser.OutputInfo;
|
6
|
using System;
|
7
|
using System.Collections.Generic;
|
8
|
|
9
|
namespace ServerApp.Parser.Parsers
|
10
|
{
|
11
|
/// <summary>
|
12
|
/// Abstract class that every DataParser should inherit from
|
13
|
/// </summary>
|
14
|
/// <author>A. Konig</author>
|
15
|
public abstract class IDataParser
|
16
|
{
|
17
|
/// <summary> WeatherInfo </summary>
|
18
|
List<WeatherInfo> weatherList;
|
19
|
public List<WeatherInfo> WeatherList { get => weatherList; }
|
20
|
/// <summary> ActivityInfo repersenting overall activity </summary>
|
21
|
List<ActivityInfo> attendanceList;
|
22
|
public List<ActivityInfo> AttendanceList { get => attendanceList; }
|
23
|
|
24
|
/// <summary>
|
25
|
/// Parse data
|
26
|
/// </summary>
|
27
|
/// <param name="interval">Length of an interval</param>
|
28
|
/// <param name="wholeDay">Parse data as one instance per day</param>
|
29
|
/// <param name="endTime">End time of related data</param>
|
30
|
/// <param name="startTime">Start time of related data</param>
|
31
|
public abstract bool Parse(DateTime startTime, DateTime endTime, int interval = 1, bool wholeDay = true);
|
32
|
|
33
|
}
|
34
|
}
|