| 1 | // This file has been automatically generated. Don't edit it. |
| 2 | |
| 3 | package studiomodescip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests/studio_mode`/ |
| 4 | |
| 5 | import 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`/" |
| 6 | |
| 7 | /* |
| 8 | EnableStudioModeParams represents the params body for the "EnableStudioMode" request. |
| 9 | Enables Studio Mode. |
| 10 | Since 4.1.0. |
| 11 | */ |
| 12 | type EnableStudioModeParamsscip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests/studio_mode`/EnableStudioModeParams# struct { |
| 13 | 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/studio_mode`/EnableStudioModeParams#ParamsBasic. |
| 14 | } |
| 15 | |
| 16 | // GetSelfName just returns "EnableStudioMode". |
| 17 | func (o *EnableStudioModeParamsscip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests/studio_mode`/EnableStudioModeParams#) GetSelfNamescip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests/studio_mode`/EnableStudioModeParams#GetSelfName().() string { |
| 18 | return "EnableStudioMode" |
| 19 | } |
| 20 | |
| 21 | /* |
| 22 | EnableStudioModeResponse represents the response body for the "EnableStudioMode" request. |
| 23 | Enables Studio Mode. |
| 24 | Since v4.1.0. |
| 25 | */ |
| 26 | type EnableStudioModeResponsescip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests/studio_mode`/EnableStudioModeResponse# struct { |
| 27 | 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/studio_mode`/EnableStudioModeResponse#ResponseBasic. |
| 28 | } |
| 29 | |
| 30 | // EnableStudioMode sends the corresponding request to the connected OBS WebSockets server. Note the variadic arguments |
| 31 | // as this request doesn't require any parameters. |
| 32 | func (c *Clientscip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests/studio_mode`/Client#) EnableStudioModescip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests/studio_mode`/Client#EnableStudioMode().(paramss ...*EnableStudioModeParamsscip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests/studio_mode`/EnableStudioModeParams#) (*EnableStudioModeResponsescip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests/studio_mode`/EnableStudioModeResponse#, error) { |
| 33 | if len(paramss) == 0 { |
| 34 | paramss = []*EnableStudioModeParamsscip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests/studio_mode`/EnableStudioModeParams#{{}} |
| 35 | } |
| 36 | params := paramss[0] |
| 37 | data := &EnableStudioModeResponsescip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests/studio_mode`/EnableStudioModeResponse#{} |
| 38 | if err := c.SendRequestscip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests`/Client#SendRequest().(params, data); err != nil { |
| 39 | return nil, err |
| 40 | } |
| 41 | return data, nil |
| 42 | } |