Projekt

Obecné

Profil

« Předchozí | Další » 

Revize fffe7190

Přidáno uživatelem Alex Konig před více než 3 roky(ů)

re #8962 Adding filtering method GetPredictionForTime to json parser + adding attributes with file names to DataParser + fixing bug in json parser method Parse

Zobrazit rozdíly:

Server/ServerApp/WeatherPredictionParser/IJsonParser.cs
3 3
//
4 4

  
5 5
using ServerApp.Parser.OutputInfo;
6
using System;
6 7
using System.Collections.Generic;
7 8

  
8 9
namespace ServerApp.WeatherPredictionParser
......
15 16

  
16 17
        /// <summary> Current weather </summary>
17 18
        WeatherInfo current;
18
        public WeatherInfo Current { get => current; }
19
        public WeatherInfo Current { get => current; set => current = value; }
19 20

  
20 21
        /// <summary> Prediction for today, tommorrow and day after tommorrow </summary>
21 22
        List<WeatherInfo> predictions;
......
27 28
        /// </summary>
28 29
        abstract public void ParsePrediction();
29 30

  
31
        /// <summary>
32
        /// Get predictions from Predictions that are within specified time span
33
        /// </summary>
34
        /// <param name="from">DateTime from</param>
35
        /// <param name="to">DateTime to</param>
36
        /// <returns>List of predictions that fit specified criteria</returns>
37
        abstract public List<WeatherInfo> GetPredictionForTime(DateTime from, DateTime to);
38

  
30 39
    }
31 40

  
32 41
}

Také k dispozici: Unified diff