Revize d39750f3
Přidáno uživatelem Alex Konig před více než 3 roky(ů)
Server/ServerApp/Parser/OutputInfo/ActivityInfo.cs | ||
---|---|---|
9 | 9 |
/// <author>Alex Konig</author> |
10 | 10 |
class ActivityInfo |
11 | 11 |
{ |
12 |
/// <summary> Faculty </summary>
|
|
13 |
public string faculty;
|
|
12 |
/// <summary> Building </summary>
|
|
13 |
public string building;
|
|
14 | 14 |
/// <summary> Number of events </summary> |
15 | 15 |
public int amount; |
16 | 16 |
/// <summary> Start of interval </summary> |
... | ... | |
27 | 27 |
/// <param name="intervalLength">Length of recorded interval</param> |
28 | 28 |
public ActivityInfo(string faculty, int amount, DateTime startTime, int intervalLength) |
29 | 29 |
{ |
30 |
this.faculty = faculty;
|
|
30 |
this.building = faculty;
|
|
31 | 31 |
this.amount = amount; |
32 | 32 |
this.startTime = startTime; |
33 | 33 |
this.intervalLength = intervalLength; |
... | ... | |
39 | 39 |
/// <returns>"start time faculty number of events"</returns> |
40 | 40 |
public override string ToString() |
41 | 41 |
{ |
42 |
return $"{startTime.ToString()} \t {faculty} \t {amount}";
|
|
42 |
return $"{startTime} \t {building} \t {amount}";
|
|
43 | 43 |
} |
44 | 44 |
} |
45 | 45 |
} |
Také k dispozici: Unified diff
re #8682 Modified parser to aggregate data according to buildings. Also added a method that merges information about jis and webauth activity into one list.