Documentation
¶
Index ¶
- type Device
- type DeviceGroup
- type DeviceTypeSelectable
- type Devices
- func (this *Devices) GetDeviceGroup(token auth.Token, groupId string) (result DeviceGroup, err error)
- func (this *Devices) GetDeviceInfosOfDevices(token auth.Token, deviceIds []string) (devices []Device, deviceTypeIds []string, err error)
- func (this *Devices) GetDeviceInfosOfGroup(token auth.Token, groupId string) (devices []Device, deviceTypeIds []string, err error)
- func (this *Devices) GetDeviceTypeSelectables(token auth.Token, criteria []FilterCriteria, includeModified bool, ...) (result []DeviceTypeSelectable, err error)
- func (this *Devices) GetDevicesWithIds(token auth.Token, ids []string) (result []Device, err error)
- type FilterCriteria
- type Interaction
- type PathOptionsResultElement
- type ServicePathOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeviceGroup ¶
type DeviceTypeSelectable ¶
type DeviceTypeSelectable struct {
DeviceTypeId string `json:"device_type_id,omitempty"`
//Services []Service `json:"services,omitempty"`
ServicePathOptions map[string][]ServicePathOption `json:"service_path_options,omitempty"`
}
type Devices ¶
type Devices struct {
// contains filtered or unexported fields
}
func (*Devices) GetDeviceGroup ¶
func (*Devices) GetDeviceInfosOfDevices ¶
func (*Devices) GetDeviceInfosOfGroup ¶
func (*Devices) GetDeviceTypeSelectables ¶
func (this *Devices) GetDeviceTypeSelectables(token auth.Token, criteria []FilterCriteria, includeModified bool, servicesMustMatchAllCriteria bool) (result []DeviceTypeSelectable, err error)
type FilterCriteria ¶
type FilterCriteria struct {
Interaction Interaction `json:"interaction"`
FunctionId string `json:"function_id"`
DeviceClassId string `json:"device_class_id"`
AspectId string `json:"aspect_id"`
}
type Interaction ¶
type Interaction string
const ( EVENT Interaction = "event" REQUEST Interaction = "request" EVENT_AND_REQUEST Interaction = "event+request" )
type ServicePathOption ¶
type ServicePathOption struct {
ServiceId string `json:"service_id"`
Path string `json:"path"`
CharacteristicId string `json:"characteristic_id"`
//AspectNode AspectNode `json:"aspect_node"`
FunctionId string `json:"function_id"`
IsVoid bool `json:"is_void"`
Value interface{} `json:"value,omitempty"`
IsControllingFunction bool `json:"is_controlling_function"`
}
Click to show internal directories.
Click to hide internal directories.