aswi2021tri-musketyri-gitlab/Server/ServerApp/Parser/OutputInfo/RainInfo.cs @ 3811845f
1 |
using System; |
---|---|
2 |
|
3 |
namespace Parser.OutputInfo |
4 |
{
|
5 |
class RainInfo |
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 |
}
|
23 |
}
|
24 |
}
|