/// <inheritdoc /> public async Task <INanoLeaf> CreateNanoLeafAsync() { var authorizationToken = await CreateAuthorizationTokenAsync(); var apiContext = new NanoLeafApiContext(authorizationToken, _httpClient); return(new NanoLeaf(apiContext)); }
internal NanoLeaf(NanoLeafApiContext apiContext) { _apiContext = apiContext ?? throw new ArgumentNullException(nameof(apiContext)); State = new NanoLeafState(_apiContext); Effects = new NanoLeafEffects(_apiContext); PanelLayout = new NanoLeafPanelLayout(_apiContext); Rhythm = new NanoLeafRhythm(_apiContext); }
public NanoLeafState(NanoLeafApiContext apiContext) { _apiContext = apiContext ?? throw new ArgumentNullException(nameof(apiContext)); }
public NanoLeafPanelLayout(NanoLeafApiContext apiContext) { _apiContext = apiContext ?? throw new ArgumentNullException(nameof(apiContext)); }
/// <inheritdoc /> public INanoLeaf CreateNanoLeaf(string authorizationToken) { var apiContext = new NanoLeafApiContext(authorizationToken, _httpClient); return(new NanoLeaf(apiContext)); }