예제 #1
0
 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);
 }
예제 #2
0
 public CardService(
     IOptions <ConfigurationAPI> apiOptions,
     IOptions <AuthConfig> authConfig,
     ILogger <CardService> logger
     )
 {
     _apiConfiguration = apiOptions.Value;
     _authConfig       = authConfig.Value;
     _logger           = logger;
 }