public static async Task <AccuWeatherRepositoryStore> FromCityCoordinates(string key, Coordinates coordinates, IDateProvider dateProvider, IRestClient restClient, string language) { var store = new AccuWeatherRepositoryStore(key, dateProvider, restClient, language); await store.ChangeCity(coordinates); return(store); }
public static async Task <AccuWeatherRepositoryStore> FromCityCode(string key, string cityCode, IDateProvider dateProvider, IRestClient restClient, string language) { var store = new AccuWeatherRepositoryStore(key, cityCode, dateProvider, restClient, language); await store.CreateRepositories(cityCode); return(store); }