示例#1
0
 private string EnglishFormat(WeatherData data) => $"Current weather for city {data.City}, {data.Country}\n"
 + $"\tTemp {data.Temp} {data.TempUnit}°, max {data.TempMax} {data.TempUnit}°, min {data.TempMin} {data.TempUnit}°\n"
 + $"\tHum {data.Humidity}%\n"
 + "command: ";
示例#2
0
 private string CzechFormat(WeatherData data) => $"Počasí v současné chvíli ve městě {data.City}, {data.Country}\n"
 + $"\tTemplota {data.Temp} {data.TempUnit}°, maximum {data.TempMax} {data.TempUnit}°, minimum {data.TempMin} {data.TempUnit}°\n"
 + $"\tVlhkost {data.Humidity}%\n"
 + "příkaz: ";
示例#3
0
 private void ModelUpdateHandler(object sender, WeatherData data) => views.ForEach(x => x.ShowResponse(formatter(data)));