Revize fffe7190
Přidáno uživatelem Alex Konig před více než 3 roky(ů)
Server/ServerApp/Program.cs | ||
---|---|---|
1 | 1 |
using ServerApp.Connection; |
2 | 2 |
using ServerApp.Connection.XMLProtocolHandler; |
3 | 3 |
using ServerApp.DataDownload; |
4 |
using ServerApp.Parser.OutputInfo; |
|
4 | 5 |
using ServerApp.Parser.Parsers; |
5 | 6 |
using ServerApp.Predictor; |
6 | 7 |
using ServerApp.User; |
... | ... | |
136 | 137 |
JsonParser jsonP = new JsonParser(null); |
137 | 138 |
jsonP.ParsePrediction(); |
138 | 139 |
|
140 |
var res = jsonP.GetPredictionForTime(jsonP.Predictions[5].startTime, jsonP.Predictions[20].startTime); |
|
141 |
Console.WriteLine("from " + jsonP.Predictions[5].startTime); |
|
142 |
Console.WriteLine("end " + jsonP.Predictions[20].startTime); |
|
143 |
foreach (WeatherInfo w in res) |
|
144 |
Console.WriteLine(w.ToString()); |
|
145 |
|
|
146 |
|
|
139 | 147 |
// TODO nastavit čas |
140 | 148 |
IDataParser p = new DataParser(dd); |
141 | 149 |
IPredictionController predictionController = new PredictionController(p); |
Také k dispozici: Unified diff
re #8962 Adding filtering method GetPredictionForTime to json parser + adding attributes with file names to DataParser + fixing bug in json parser method Parse