| 1 | // This file has been automatically generated. Don't edit it. |
| 2 | |
| 3 | package outputsscip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests/outputs`/ |
| 4 | |
| 5 | import ( |
| 6 | requestsscip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests`/ "github.com/andreykaipov/goobs/api/requestsscip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests`/" |
| 7 | typedefsscip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/typedefs`/ "github.com/andreykaipov/goobs/api/typedefsscip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/typedefs`/" |
| 8 | ) |
| 9 | |
| 10 | /* |
| 11 | ListOutputsParams represents the params body for the "ListOutputs" request. |
| 12 | List existing outputs |
| 13 | Since 4.7.0. |
| 14 | */ |
| 15 | type ListOutputsParamsscip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests/outputs`/ListOutputsParams# struct { |
| 16 | requestsscip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests`/.ParamsBasicscip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests/outputs`/ListOutputsParams#ParamsBasic. |
| 17 | } |
| 18 | |
| 19 | // GetSelfName just returns "ListOutputs". |
| 20 | func (o *ListOutputsParamsscip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests/outputs`/ListOutputsParams#) GetSelfNamescip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests/outputs`/ListOutputsParams#GetSelfName().() string { |
| 21 | return "ListOutputs" |
| 22 | } |
| 23 | |
| 24 | /* |
| 25 | ListOutputsResponse represents the response body for the "ListOutputs" request. |
| 26 | List existing outputs |
| 27 | Since v4.7.0. |
| 28 | */ |
| 29 | type ListOutputsResponsescip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests/outputs`/ListOutputsResponse# struct { |
| 30 | requestsscip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests`/.ResponseBasicscip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests/outputs`/ListOutputsResponse#ResponseBasic. |
| 31 | |
| 32 | // Outputs list |
| 33 | Outputsscip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests/outputs`/ListOutputsResponse#Outputs. []typedefsscip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/typedefs`/.Outputscip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/typedefs`/Output# `json:"outputs,omitempty"` |
| 34 | } |
| 35 | |
| 36 | // ListOutputs sends the corresponding request to the connected OBS WebSockets server. Note the variadic arguments as |
| 37 | // this request doesn't require any parameters. |
| 38 | func (c *Clientscip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests/outputs`/Client#) ListOutputsscip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests/outputs`/Client#ListOutputs().(paramss ...*ListOutputsParamsscip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests/outputs`/ListOutputsParams#) (*ListOutputsResponsescip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests/outputs`/ListOutputsResponse#, error) { |
| 39 | if len(paramss) == 0 { |
| 40 | paramss = []*ListOutputsParamsscip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests/outputs`/ListOutputsParams#{{}} |
| 41 | } |
| 42 | params := paramss[0] |
| 43 | data := &ListOutputsResponsescip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests/outputs`/ListOutputsResponse#{} |
| 44 | if err := c.SendRequestscip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests`/Client#SendRequest().(params, data); err != nil { |
| 45 | return nil, err |
| 46 | } |
| 47 | return data, nil |
| 48 | } |