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