private void setAPIs() { Lights = new LightsAPI(_httpClient, _userName, _jsonSerializerOptions); Groups = new GroupsAPI(_httpClient, _userName, _jsonSerializerOptions); Configuration = new ConfigurationAPI(_httpClient, _userName, _jsonSerializerOptions); Schedules = new SchedulesAPI(_httpClient, _userName, _jsonSerializerOptions); }
public CardService( IOptions <ConfigurationAPI> apiOptions, IOptions <AuthConfig> authConfig, ILogger <CardService> logger ) { _apiConfiguration = apiOptions.Value; _authConfig = authConfig.Value; _logger = logger; }