model

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlexaCmd

type AlexaCmd struct {
	BehaviorID   string `json:"behaviorId"`
	SequenceJSON string `json:"sequenceJson"`
	Status       string `json:"status"`
}

func BuildSpeakCmd

func BuildSpeakCmd(
	text string,
	locale string,
	deviceType string,
	deviceSerialNumber string,
	mediaOwnerCustomerID string) AlexaCmd

func BuildTextCommandCmd

func BuildTextCommandCmd(
	text string,
	locale string,
	deviceType string,
	deviceSerialNumber string,
	mediaOwnerCustomerID string) AlexaCmd

func BuildVolumeCmd added in v0.0.2

func BuildVolumeCmd(
	volume int,
	locale string,
	deviceType string,
	deviceSerialNumber string,
	mediaOwnerCustomerID string) AlexaCmd

type Device

type Device struct {
	AccountName string `json:"accountName"`
	//AppDeviceList                 `json:"appDeviceList"`
	AssociatedUnitIds      *string  `json:"associatedUnitIds"`
	Capabilities           []string `json:"capabilities"`
	Charging               *bool    `json:"charging"`
	ClusterMembers         []string `json:"clusterMembers"`
	DeviceAccountId        string   `json:"deviceAccountId"`
	DeviceFamily           string   `json:"deviceFamily"`
	DeviceOwnerCustomerId  string   `json:"deviceOwnerCustomerId"`
	DeviceType             string   `json:"deviceType"`
	DeviceTypeFriendlyName *string  `json:"deviceTypeFriendlyName"`
	Essid                  *string  `json:"essid"`
	Language               *string  `json:"language"`
	MacAddress             *string  `json:"macAddress"`
	Online                 bool     `json:"online"`
	ParentClusters         []string `json:"parentClusters"`
	PostalCode             *string  `json:"postalCode"`
	RegistrationId         *string  `json:"registrationId"`
	RemainingBatteryLevel  *int     `json:"remainingBatteryLevel"`
	SerialNumber           string   `json:"serialNumber"`
	SoftwareVersion        string   `json:"softwareVersion"`
}

type DevicesResponse

type DevicesResponse struct {
	Devices []Device `json:"devices"`
}

type OperationPayload

type OperationPayload struct {
	DeviceType         string `json:"deviceType"`
	DeviceSerialNumber string `json:"deviceSerialNumber"`
	CustomerID         string `json:"customerId"`
	Locale             string `json:"locale,omitempty"`
	Text               string `json:"text,omitempty"`
	TextToSpeak        string `json:"textToSpeak,omitempty"`
	SoundStringID      string `json:"soundStringId,omitempty"`
	Value              string `json:"value,omitempty"`
}

type Sequence

type Sequence struct {
	Type      string    `json:"@type"`
	StartNode StartNode `json:"startNode"`
}

type StartNode

type StartNode struct {
	Type             string           `json:"@type"`
	NodeType         string           `json:"type"`
	SkillID          string           `json:"skillId,omitempty"`
	OperationPayload OperationPayload `json:"operationPayload"`
}

type Volume added in v0.0.2

type Volume struct {
	AlertVolume   *int    `json:"alertVolume,omitempty"`
	DeviceType    string  `json:"deviceType"`
	Dsn           string  `json:"dsn"`
	Error         *string `json:"error,omitempty"`
	SpeakerMuted  bool    `json:"speakerMuted"`
	SpeakerVolume int     `json:"speakerVolume"`
}

type VolumeResponse added in v0.0.2

type VolumeResponse struct {
	Volumes []Volume `json:"volumes"`
}

Jump to

Keyboard shortcuts

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