예제 #1
0
 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);
 }
예제 #2
0
 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);
 }
예제 #3
0
 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);
 }