| 1 | // This file has been automatically generated. Don't edit it. |
| 2 | |
| 3 | package transitionsscip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests/transitions`/ |
| 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 | GetTransitionSettingsParams represents the params body for the "GetTransitionSettings" request. |
| 9 | Get the current settings of a transition |
| 10 | Since 4.9.0. |
| 11 | */ |
| 12 | type GetTransitionSettingsParamsscip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests/transitions`/GetTransitionSettingsParams# 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/transitions`/GetTransitionSettingsParams#ParamsBasic. |
| 14 | |
| 15 | // Transition name |
| 16 | TransitionNamescip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests/transitions`/GetTransitionSettingsParams#TransitionName. string `json:"transitionName,omitempty"` |
| 17 | } |
| 18 | |
| 19 | // GetSelfName just returns "GetTransitionSettings". |
| 20 | func (o *GetTransitionSettingsParamsscip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests/transitions`/GetTransitionSettingsParams#) GetSelfNamescip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests/transitions`/GetTransitionSettingsParams#GetSelfName().() string { |
| 21 | return "GetTransitionSettings" |
| 22 | } |
| 23 | |
| 24 | /* |
| 25 | GetTransitionSettingsResponse represents the response body for the "GetTransitionSettings" request. |
| 26 | Get the current settings of a transition |
| 27 | Since v4.9.0. |
| 28 | */ |
| 29 | type GetTransitionSettingsResponsescip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests/transitions`/GetTransitionSettingsResponse# 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/transitions`/GetTransitionSettingsResponse#ResponseBasic. |
| 31 | |
| 32 | // Current transition settings |
| 33 | TransitionSettingsscip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests/transitions`/GetTransitionSettingsResponse#TransitionSettings. map[string]interface{} `json:"transitionSettings,omitempty"` |
| 34 | } |
| 35 | |
| 36 | // GetTransitionSettings sends the corresponding request to the connected OBS WebSockets server. |
| 37 | func (c *Clientscip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests/transitions`/Client#) GetTransitionSettingsscip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests/transitions`/Client#GetTransitionSettings().(params *GetTransitionSettingsParamsscip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests/transitions`/GetTransitionSettingsParams#) (*GetTransitionSettingsResponsescip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests/transitions`/GetTransitionSettingsResponse#, error) { |
| 38 | data := &GetTransitionSettingsResponsescip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests/transitions`/GetTransitionSettingsResponse#{} |
| 39 | if err := c.SendRequestscip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests`/Client#SendRequest().(params, data); err != nil { |
| 40 | return nil, err |
| 41 | } |
| 42 | return data, nil |
| 43 | } |