models

package
v0.0.0-...-5dea150 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 6, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AudioOutput

type AudioOutput struct {
	OutputID   string `json:"av_audio_output_id"`
	RoomNum    string `json:"room_number"`
	BldgAbbr   string `json:"building_abbreviation"`
	DeviceType string `json:"av_device_type"`
}

Audio Outputs

type AudioOutputDB

type AudioOutputDB struct {
	Rev string `json:"_rev,omitempty"`
	*structs.UIConfig
}

type AudioOutputResponse

type AudioOutputResponse struct {
	Docs     []AudioOutputDB `json:"docs"`
	Bookmark string          `json:"bookmark"`
	Warning  string          `json:"warning"`
}

type AudioOutputState

type AudioOutputState struct {
	Volume int  `json:"av_audio_output_volume_level"`
	Muted  bool `json:"av_audio_output_muted"`
}

type CouchSearch

type CouchSearch struct {
	GT    string `json:"$gt,omitempty"`
	LT    string `json:"$lt,omitempty"`
	Regex string `json:"$regex,omitempty"`
}

type Device

type Device struct {
	DeviceID   string `json:"av_device_id"`
	DeviceName string `json:"av_device_name"`
	DeviceType string `json:"av_device_type"`
	BldgAbbr   string `json:"building_abbreviation"`
	RoomNum    string `json:"room_number"`
}

Devices

type DeviceDB

type DeviceDB struct {
	Rev string `json:"_rev,omitempty"`
	*structs.Device
}

type DeviceProperty

type DeviceProperty struct {
	Name  string `json:"av_device_property_name"`
	Value string `json:"av_device_property_value"`
}

type DeviceQuery

type DeviceQuery struct {
	Selector struct {
		ID      CouchSearch      `json:"_id"`
		DevType *DeviceTypeQuery `json:"type,omitempty"`
	} `json:"selector"`
	Limit int `json:"limit"`
}

type DeviceResponse

type DeviceResponse struct {
	Docs     []DeviceDB `json:"docs"`
	Bookmark string     `json:"bookmark"`
	Warning  string     `json:"warning"`
}

type DeviceStateAttribute

type DeviceStateAttribute struct {
	Name  string `json:"av_device_state_attribute_name"`
	Value string `json:"av_device_state_attribute_value"`
}

type DeviceTypeQuery

type DeviceTypeQuery struct {
	ID *CouchSearch `json:"_id,omitempty"`
}

type Display

type Display struct {
	DisplayID string `json:"av_display_id"`
	RoomNum   string `json:"room_number"`
	BldgAbbr  string `json:"building_abbreviation"`
}

Displays

type DisplayConfig

type DisplayConfig struct {
	Devices []string `json:"av_devices"`
	Inputs  []string `json:"av_inputs"`
}

type DisplayDB

type DisplayDB struct {
	Rev string `json:"_rev,omitempty"`
	*structs.UIConfig
}

type DisplayResponse

type DisplayResponse struct {
	Docs     []DisplayDB `json:"docs"`
	Bookmark string      `json:"bookmark"`
	Warning  string      `json:"warning"`
}

type DisplayState

type DisplayState struct {
	Powered bool   `json:"av_display_powered"`
	Blanked bool   `json:"av_display_blanked"`
	Input   string `json:"av_display_input"`
}

type Input

type Input struct {
	DeviceID   string   `json:"av_device_id"`
	RoomNum    string   `json:"room_number"`
	BldgAbbr   string   `json:"building_abbreviation"`
	DeviceType string   `json:"av_device_type"`
	Outputs    []string `json:"av_outputs"`
}

Inputs

type InputDB

type InputDB struct {
	Rev string `json:"_rev,omitempty"`
	*structs.UIConfig
}

type InputResponse

type InputResponse struct {
	Docs     []InputDB `json:"docs"`
	Bookmark string    `json:"bookmark"`
	Warning  string    `json:"warning"`
}

type Resource

type Resource struct {
	Quantity  int      `json:"quantity"`
	Resource  string   `json:"resource"`
	Locations []string `json:"locations"`
}

type Room

type Room struct {
	RoomID      string     `json:"av_room_id"`
	RoomNum     string     `json:"room_number"`
	BldgAbbr    string     `json:"building_abbreviation"`
	Description string     `json:"av_room_description"`
	Resources   []Resource `json:"av_resources"`
}

Rooms

type RoomDB

type RoomDB struct {
	Rev string `json:"_rev,omitempty"`
	*structs.Room
}

type RoomDevices

type RoomDevices struct {
	Displays []string `json:"av_displays"`
	Outputs  []string `json:"av_audio_outputs"`
	Inputs   []string `json:"av_inputs"`
}

type RoomQuery

type RoomQuery struct {
	Selector struct {
		ID CouchSearch `json:"_id"`
	} `json:"selector"`
	Limit int `json:"limit"`
}

type RoomResponse

type RoomResponse struct {
	Docs     []RoomDB `json:"docs"`
	Bookmark string   `json:"bookmark"`
	Warning  string   `json:"warning"`
}

Rooms

type RoomState

type RoomState struct {
	Displays     []StateDisplay     `json:"displays,omitempty"`
	AudioDevices []StateAudioDevice `json:"audioDevices,omitempty"`
}

type StateAudioDevice

type StateAudioDevice struct {
	Name   string `json:"name,omitempty"`
	Power  string `json:"power,omitempty"`
	Input  string `json:"input,omitempty"`
	Muted  bool   `json:"muted,omitempty"`
	Volume int    `json:"volume,omitempty"`
}

type StateDisplay

type StateDisplay struct {
	Name    string `json:"name,omitempty"`
	Power   string `json:"power,omitempty"`
	Input   string `json:"input,omitempty"`
	Blanked bool   `json:"blanked,omitempty"`
}

type UIConfigQuery

type UIConfigQuery struct {
	Selector struct {
		ID CouchSearch `json:"_id"`
	} `json:"selector"`
	Limit int `json:"limit"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL