Revize a53b1de8
Přidáno uživatelem Alex Konig před více než 3 roky(ů)
Server/ServerApp/Parser/OutputInfo/WeatherInfo.cs | ||
---|---|---|
85 | 85 |
return $"{startTime} \t {temp}°C \t {rain}% \t {wind}m/s \t {condition.ToString()} \t {lum}"; |
86 | 86 |
} |
87 | 87 |
|
88 |
/// <summary> |
|
89 |
/// Eqquals |
|
90 |
/// </summary> |
|
91 |
/// <param name="obj"> Other object </param> |
|
92 |
/// <returns></returns> |
|
93 |
public override bool Equals(object obj) |
|
94 |
{ |
|
95 |
WeatherInfo other = (WeatherInfo) obj; |
|
96 |
|
|
97 |
if (startTime == other.startTime && temp == other.temp && wind == other.wind && rain == other.rain && condition == other.condition) |
|
98 |
return true; |
|
99 |
|
|
100 |
return false; |
|
101 |
} |
|
88 | 102 |
} |
89 | 103 |
} |
Také k dispozici: Unified diff
re #8933 Testing DataParser, JisParser and WeatherParser