1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
|
// This file has been automatically generated. Don't edit it.
package sceneitems
import requests "github.com/andreykaipov/goobs/api/requests"
/*
GetSceneItemListParams represents the params body for the "GetSceneItemList" request.
Get a list of all scene items in a scene.
Since 4.9.0.
*/
type GetSceneItemListParams struct {
requests.ParamsBasic
// Name of the scene to get the list of scene items from. Defaults to the current scene if not specified.
SceneName string `json:"sceneName,omitempty"`
}
// GetSelfName just returns "GetSceneItemList".
func (o *GetSceneItemListParams) GetSelfName() string {
return "GetSceneItemList"
}
/*
GetSceneItemListResponse represents the response body for the "GetSceneItemList" request.
Get a list of all scene items in a scene.
Since v4.9.0.
*/
type GetSceneItemListResponse struct {
requests.ResponseBasic
SceneItems []*SceneItem `json:"sceneItems,omitempty"`
// Name of the requested (or current) scene
SceneName string `json:"sceneName,omitempty"`
}
type SceneItem struct {
// Unique item id of the source item
ItemId int `json:"itemId,omitempty"`
// ID if the scene item's source. For example `vlc_source` or `image_source`
SourceKind string `json:"sourceKind,omitempty"`
// Name of the scene item's source
SourceName string `json:"sourceName,omitempty"`
// Type of the scene item's source. Either `input`, `group`, or `scene`
SourceType string `json:"sourceType,omitempty"`
}
// GetSceneItemList sends the corresponding request to the connected OBS WebSockets server.
func (c *Client) GetSceneItemList(params *GetSceneItemListParams) (*GetSceneItemListResponse, error) {
data := &GetSceneItemListResponse{}
if err := c.SendRequest(params, data); err != nil {
return nil, err
}
return data, nil
}
|