public async Task AddLocation(WuAcLocation location) { LocationAdded?.Invoke(this, EventArgs.Empty); var wuLocation = await getWuLocation(location); AddLocation(wuLocation); }
async Task <WuLocation> getWuLocation(WuAcLocation acLocation) { var location = new WuLocation(acLocation); location.Weather = await GetAsync <WuWeather> (acLocation.l); System.Diagnostics.Debug.WriteLine(location.Weather.ToJson()); location.Updated = DateTime.UtcNow; return(location); }
public WuLocation(WuAcLocation location, WuWeather weather) { Location = location; Weather = weather; Updated = DateTime.UtcNow; }
public WuLocation(WuAcLocation location) { Location = location; }