go.charczuk.com@v0.0.0-20240327042549-bc490516bd1a/experiments/huectl/pkg/hue/capability.go (about)

     1  /*
     2  
     3  Copyright (c) 2023 - Present. Will Charczuk. All rights reserved.
     4  Use of this source code is governed by a MIT license that can be found in the LICENSE file at the root of the repository.
     5  
     6  */
     7  
     8  package hue
     9  
    10  // Capabilities holds a combined model of resource capabilities on the bridge: https://developers.meethue.com/documentation/lights-api
    11  type Capabilities struct {
    12  	Groups        Capability `json:"groups,omitempty"`
    13  	Lights        Capability `json:"lights,omitempty"`
    14  	Resourcelinks Capability `json:"resourcelinks,omitempty"`
    15  	Schedules     Capability `json:"schedules,omitempty"`
    16  	Rules         Capability `json:"rules,omitempty"`
    17  	Scenes        Capability `json:"scenes,omitempty"`
    18  	Sensors       Capability `json:"sensors,omitempty"`
    19  	Streaming     Capability `json:"streaming,omitempty"`
    20  }
    21  
    22  // Capability defines the resource and subresource capabilities.
    23  type Capability struct {
    24  	Available int `json:"available,omitempty"`
    25  }