Revize 0da0ac88
Přidáno uživatelem Alex Konig před asi 4 roky(ů)
Server/Parser 1.0/OutputInfo/RainInfo.cs | ||
---|---|---|
1 | 1 |
using System; |
2 |
using System.Collections.Generic; |
|
3 |
using System.Linq; |
|
4 |
using System.Text; |
|
5 |
using System.Threading.Tasks; |
|
6 | 2 |
|
7 | 3 |
namespace Parser_1._0.OutputInfo |
8 | 4 |
{ |
9 | 5 |
class RainInfo |
10 | 6 |
{ |
7 |
// probability in % |
|
8 |
double value; |
|
9 |
DateTime startTime; |
|
10 |
int intervalLength; |
|
11 |
|
|
12 |
public RainInfo(double value, DateTime startTime, int intervalLength) |
|
13 |
{ |
|
14 |
this.value = value; |
|
15 |
this.startTime = startTime; |
|
16 |
this.intervalLength = intervalLength; |
|
17 |
} |
|
18 |
|
|
19 |
public override string ToString() |
|
20 |
{ |
|
21 |
return $"{startTime.ToString()} \t {value}"; |
|
22 |
} |
|
11 | 23 |
} |
12 | 24 |
} |
Také k dispozici: Unified diff
Parse data as days - averages, sums