Documentation
¶
Index ¶
- type AlexaCmd
- func BuildSpeakCmd(text string, locale string, deviceType string, deviceSerialNumber string, ...) AlexaCmd
- func BuildTextCommandCmd(text string, locale string, deviceType string, deviceSerialNumber string, ...) AlexaCmd
- func BuildVolumeCmd(volume int, locale string, deviceType string, deviceSerialNumber string, ...) AlexaCmd
- type Device
- type DevicesResponse
- type OperationPayload
- type Sequence
- type StartNode
- type Volume
- type VolumeResponse
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 BuildTextCommandCmd ¶
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 StartNode ¶
type StartNode struct { Type string `json:"@type"` NodeType string `json:"type"` SkillID string `json:"skillId,omitempty"` OperationPayload OperationPayload `json:"operationPayload"` }
type VolumeResponse ¶ added in v0.0.2
type VolumeResponse struct {
Volumes []Volume `json:"volumes"`
}
Click to show internal directories.
Click to hide internal directories.