1 |
cdf3c217
|
A-Konig
|
//
|
2 |
|
|
// Author: A. Konig
|
3 |
|
|
//
|
4 |
|
|
|
5 |
|
|
using System;
|
6 |
5d9a5bd9
|
A-Konig
|
|
7 |
734533a8
|
A-Konig
|
namespace ServerApp.Parser.InputData
|
8 |
5d9a5bd9
|
A-Konig
|
{
|
9 |
|
|
/// <summary>
|
10 |
734533a8
|
A-Konig
|
/// Data from jis data file
|
11 |
|
|
///
|
12 |
5d9a5bd9
|
A-Konig
|
/// 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 |
cdf3c217
|
A-Konig
|
/// <author>A. Konig</author>
|
21 |
5d9a5bd9
|
A-Konig
|
class JisInstance
|
22 |
|
|
{
|
23 |
734533a8
|
A-Konig
|
/// <summary> Place tag </summary>
|
24 |
|
|
// index 0
|
25 |
5d9a5bd9
|
A-Konig
|
public string placeTag;
|
26 |
734533a8
|
A-Konig
|
/// <summary> Date time </summary>
|
27 |
|
|
// index 1
|
28 |
5d9a5bd9
|
A-Konig
|
public DateTime dateTime;
|
29 |
734533a8
|
A-Konig
|
/// <summary> Number of events </summary>
|
30 |
|
|
// index 2
|
31 |
5d9a5bd9
|
A-Konig
|
public int amount;
|
32 |
|
|
|
33 |
734533a8
|
A-Konig
|
/// <summary>
|
34 |
|
|
/// Constructor
|
35 |
|
|
/// </summary>
|
36 |
|
|
/// <param name="placeTag"></param>
|
37 |
|
|
/// <param name="dateTime"></param>
|
38 |
|
|
/// <param name="amount"></param>
|
39 |
5d9a5bd9
|
A-Konig
|
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 |
|
|
}
|