public AccuweatherService(IRequestService requestService, IRuntimeContext runtimeContext, string lang = "sr-RS", bool isImperial = false) { _requestService = requestService; _lang = lang; _isImperial = isImperial; _baseEndpoint = runtimeContext.GetBaseEndpoint(GetType().Name); _serviceKey = runtimeContext.GetKey(GetType().Name); }
public WeatherbitService(IRequestService requestService, IRuntimeContext runtimeContext, string lang = "sr", bool isImperial = false) { _requestService = requestService; _runtimeContext = runtimeContext; _lang = lang; _unit = GetUnit(isImperial); _baseEndpoint = runtimeContext.GetBaseEndpoint(GetType().Name); _serviceKey = runtimeContext.GetKey(GetType().Name); }
public AmbeeService(IRequestService requestService, IRuntimeContext runtimeContext, ILocationService locationService, string lang = "sr", bool isImperial = false) { _requestService = requestService; _runtimeContext = runtimeContext; _locationService = locationService; _isImperial = isImperial; _baseEndpoint = runtimeContext.GetBaseEndpoint(GetType().Name); _serviceKey = runtimeContext.GetKey(GetType().Name); }