Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 1407c8ba

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

re #8840 Finishing up Json parser

Zobrazit rozdíly:

Server/ServerApp/Parser/OutputInfo/WeatherInfo.cs
21 21
        public WeatherConditions condition;
22 22

  
23 23
        /// <summary> Start of interval </summary>
24
        DateTime startTime;
24
        public DateTime startTime;
25 25
        /// <summary> Length of interval in hours </summary>
26
        int intervalLength;
26
        public int intervalLength;
27

  
28
        public WeatherInfo()
29
        {
30
            condition = WeatherConditions.Dark;
31
        }
27 32

  
28 33
        /// <summary>
29 34
        /// Constructor
......
43 48
            this.lum = lum;
44 49
            this.intervalLength = intervalLength;
45 50

  
46
            condition = LuxToConditions.TransferLuxToConditions(lum);
51
            condition = ValueToConditions.TransferLuxToConditions(lum);
47 52
        }
48 53

  
49 54
        /// <summary>
......
64 69
            this.condition = condition;
65 70
            this.intervalLength = intervalLength;
66 71

  
67
            lum = LuxToConditions.TransferConditionsToLux(condition);
72
            lum = ValueToConditions.TransferConditionsToLux(condition);
68 73
        }
69 74

  
70 75
        /// <summary>
......
73 78
        /// <returns>interval start temperature probability of rain wind    weather condition</returns>
74 79
        public override string ToString()
75 80
        {
76
            return $"{startTime.ToString()} \t {temp}°C \t {rain}% \t {wind}m/s \t {condition.ToString()} \t {lum}";
81
            return $"{startTime} \t {temp}°C \t {rain}% \t {wind}m/s \t {condition.ToString()} \t {lum}";
77 82
        }
78 83

  
79 84
    }

Také k dispozici: Unified diff