2019-07-14 14:52:11 -06:00
|
|
|
package streamdeck
|
2019-07-14 14:44:00 -06:00
|
|
|
|
2019-07-14 14:52:11 -06:00
|
|
|
type LogMessagePayload struct {
|
2019-07-14 14:44:00 -06:00
|
|
|
Message string `json:"message"`
|
|
|
|
}
|
|
|
|
|
2019-07-14 14:52:11 -06:00
|
|
|
type OpenURLPayload struct {
|
2019-07-14 14:44:00 -06:00
|
|
|
URL string `json:"url"`
|
|
|
|
}
|
|
|
|
|
2019-07-14 14:52:11 -06:00
|
|
|
type SetTitlePayload struct {
|
2019-07-14 14:44:00 -06:00
|
|
|
Title string `json:"title"`
|
|
|
|
Target Target `json:"target"`
|
|
|
|
}
|
|
|
|
|
2019-07-14 14:52:11 -06:00
|
|
|
type SetImagePayload struct {
|
2019-07-14 14:44:00 -06:00
|
|
|
Base64Image string `json:"image"`
|
|
|
|
Target Target `json:"target"`
|
|
|
|
}
|
|
|
|
|
2019-07-14 14:52:11 -06:00
|
|
|
type SetStatePayload struct {
|
2019-07-14 14:44:00 -06:00
|
|
|
State int `json:"state"`
|
|
|
|
}
|
|
|
|
|
2019-07-14 14:52:11 -06:00
|
|
|
type SwitchProfilePayload struct {
|
2019-07-14 14:44:00 -06:00
|
|
|
Profile string `json:"profile"`
|
|
|
|
}
|
|
|
|
|
2023-08-08 15:34:37 -06:00
|
|
|
type SetFeedbackLayoutPayload struct {
|
|
|
|
Layout string `json:"layout"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type DidReceiveSettingsPayload[T any] struct {
|
|
|
|
Settings T `json:"settings,omitempty"`
|
|
|
|
Coordinates Coordinates `json:"coordinates,omitempty"`
|
|
|
|
IsInMultiAction bool `json:"isInMultiAction,omitempty"`
|
2019-07-14 14:44:00 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
type Coordinates struct {
|
|
|
|
Column int `json:"column,omitempty"`
|
|
|
|
Row int `json:"row,omitempty"`
|
|
|
|
}
|
|
|
|
|
2023-08-08 15:34:37 -06:00
|
|
|
type DidReceiveGlobalSettingsPayload[T any] struct {
|
|
|
|
Settings T `json:"settings,omitempty"`
|
2019-07-14 14:44:00 -06:00
|
|
|
}
|
|
|
|
|
2023-08-08 15:34:37 -06:00
|
|
|
type KeyDownPayload[T any] struct {
|
|
|
|
Settings T `json:"settings,omitempty"`
|
|
|
|
Coordinates Coordinates `json:"coordinates,omitempty"`
|
|
|
|
State int `json:"state,omitempty"`
|
|
|
|
UserDesiredState int `json:"userDesiredState,omitempty"`
|
|
|
|
IsInMultiAction bool `json:"isInMultiAction,omitempty"`
|
2019-07-14 14:44:00 -06:00
|
|
|
}
|
|
|
|
|
2023-08-08 15:34:37 -06:00
|
|
|
type KeyUpPayload[T any] struct {
|
|
|
|
Settings T `json:"settings,omitempty"`
|
|
|
|
Coordinates Coordinates `json:"coordinates,omitempty"`
|
|
|
|
State int `json:"state,omitempty"`
|
|
|
|
UserDesiredState int `json:"userDesiredState,omitempty"`
|
|
|
|
IsInMultiAction bool `json:"isInMultiAction,omitempty"`
|
2019-07-14 14:44:00 -06:00
|
|
|
}
|
|
|
|
|
2023-08-08 15:34:37 -06:00
|
|
|
// TouchTapPayload A json object
|
|
|
|
type TouchTapPayload[T any] struct {
|
|
|
|
Settings T `json:"settings,omitempty"`
|
|
|
|
Coordinates Coordinates `json:"coordinates,omitempty"`
|
|
|
|
TapPos [2]int `json:"tapPos,omitempty"`
|
|
|
|
Hold bool `json:"hold,omitempty"`
|
2019-07-14 14:44:00 -06:00
|
|
|
}
|
|
|
|
|
2023-08-08 15:34:37 -06:00
|
|
|
type DialDownPayload[T any] struct {
|
|
|
|
Settings T `json:"settings,omitempty"`
|
|
|
|
Coordinates Coordinates `json:"coordinates,omitempty"`
|
|
|
|
Controller string `json:"controller,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type DialUpPayload[T any] struct {
|
|
|
|
Settings T `json:"settings,omitempty"`
|
|
|
|
Coordinates Coordinates `json:"coordinates,omitempty"`
|
|
|
|
Controller string `json:"controller,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type DialRotatePayload[T any] struct {
|
|
|
|
Settings T `json:"settings,omitempty"`
|
|
|
|
Coordinates Coordinates `json:"coordinates,omitempty"`
|
|
|
|
Ticks int `json:"ticks,omitempty"`
|
|
|
|
Pressed bool `json:"pressed,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type WillAppearPayload[T any] struct {
|
|
|
|
Settings T `json:"settings,omitempty"`
|
|
|
|
Coordinates Coordinates `json:"coordinates,omitempty"`
|
|
|
|
State int `json:"state,omitempty"`
|
|
|
|
IsInMultiAction bool `json:"isInMultiAction,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type WillDisappearPayload[T any] struct {
|
|
|
|
Settings T `json:"settings,omitempty"`
|
|
|
|
Coordinates Coordinates `json:"coordinates,omitempty"`
|
|
|
|
State int `json:"state,omitempty"`
|
|
|
|
IsInMultiAction bool `json:"isInMultiAction,omitempty"`
|
2019-07-14 14:44:00 -06:00
|
|
|
}
|
|
|
|
|
2023-08-08 15:34:37 -06:00
|
|
|
type TitleParametersDidChangePayload[T any] struct {
|
|
|
|
Settings T `json:"settings,omitempty"`
|
2019-07-14 14:44:00 -06:00
|
|
|
Coordinates Coordinates `json:"coordinates,omitempty"`
|
|
|
|
State int `json:"state,omitempty"`
|
|
|
|
Title string `json:"title,omitempty"`
|
|
|
|
TitleParameters TitleParameters `json:"titleParameters,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type TitleParameters struct {
|
|
|
|
FontFamily string `json:"fontFamily,omitempty"`
|
|
|
|
FontSize int `json:"fontSize,omitempty"`
|
|
|
|
FontStyle string `json:"fontStyle,omitempty"`
|
|
|
|
FontUnderline bool `json:"fontUnderline,omitempty"`
|
|
|
|
ShowTitle bool `json:"showTitle,omitempty"`
|
|
|
|
TitleAlignment string `json:"titleAlignment,omitempty"`
|
|
|
|
TitleColor string `json:"titleColor,omitempty"`
|
|
|
|
}
|
|
|
|
|
2019-07-14 14:52:11 -06:00
|
|
|
type ApplicationDidLaunchPayload struct {
|
2019-07-14 14:44:00 -06:00
|
|
|
Application string `json:"application,omitempty"`
|
|
|
|
}
|
|
|
|
|
2019-07-14 14:52:11 -06:00
|
|
|
type ApplicationDidTerminatePayload struct {
|
2019-07-14 14:44:00 -06:00
|
|
|
Application string `json:"application,omitempty"`
|
|
|
|
}
|