1
|
//
|
2
|
// Author: A. Konig
|
3
|
//
|
4
|
|
5
|
using System;
|
6
|
|
7
|
namespace ServerApp.Parser.InputData
|
8
|
{
|
9
|
/// <summary>
|
10
|
/// Data from jis data file
|
11
|
///
|
12
|
/// Data contains:
|
13
|
/// datum_a_cas - timestamp of JIS authentication(accuracy in milliseconds)
|
14
|
/// pocet_logu - number of authentized users in given time
|
15
|
/// popis_objektu - description of object according to standard ZČU tagging
|
16
|
/// Csv format:
|
17
|
/// "A1";"08.04.2018 14:23:15";1
|
18
|
/// [place tag];[date time];[amount]
|
19
|
/// </summary>
|
20
|
/// <author>A. Konig</author>
|
21
|
class JisInstance
|
22
|
{
|
23
|
/// <summary> Place tag </summary>
|
24
|
// index 0
|
25
|
public string placeTag;
|
26
|
/// <summary> Date time </summary>
|
27
|
// index 1
|
28
|
public DateTime dateTime;
|
29
|
/// <summary> Number of events </summary>
|
30
|
// index 2
|
31
|
public int amount;
|
32
|
|
33
|
/// <summary>
|
34
|
/// Constructor
|
35
|
/// </summary>
|
36
|
/// <param name="placeTag"></param>
|
37
|
/// <param name="dateTime"></param>
|
38
|
/// <param name="amount"></param>
|
39
|
public JisInstance(string placeTag, DateTime dateTime, int amount)
|
40
|
{
|
41
|
this.placeTag = placeTag;
|
42
|
this.dateTime = dateTime;
|
43
|
this.amount = amount;
|
44
|
}
|
45
|
|
46
|
}
|
47
|
}
|