Debian Codegraph @

api/requests/media_control/xx_generated.previousmedia.go

raw symbols SCIP
1 // This file has been automatically generated. Don't edit it.
2
3 package mediacontrolscip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests/media_control`/
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 PreviousMediaParams represents the params body for the "PreviousMedia" request.
9 Go to the previous media item in the playlist. Supports only vlc media source (as of OBS v25.0.8)
10 Since 4.9.0.
11 */
12 type PreviousMediaParamsscip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests/media_control`/PreviousMediaParams# 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/media_control`/PreviousMediaParams#ParamsBasic.
14
15 // Source name.
16 SourceNamescip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests/media_control`/PreviousMediaParams#SourceName. string `json:"sourceName,omitempty"`
17 }
18
19 // GetSelfName just returns "PreviousMedia".
20 func (o *PreviousMediaParamsscip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests/media_control`/PreviousMediaParams#) GetSelfNamescip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests/media_control`/PreviousMediaParams#GetSelfName().() string {
21 return "PreviousMedia"
22 }
23
24 /*
25 PreviousMediaResponse represents the response body for the "PreviousMedia" request.
26 Go to the previous media item in the playlist. Supports only vlc media source (as of OBS v25.0.8)
27 Since v4.9.0.
28 */
29 type PreviousMediaResponsescip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests/media_control`/PreviousMediaResponse# 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/media_control`/PreviousMediaResponse#ResponseBasic.
31 }
32
33 // PreviousMedia sends the corresponding request to the connected OBS WebSockets server.
34 func (c *Clientscip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests/media_control`/Client#) PreviousMediascip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests/media_control`/Client#PreviousMedia().(params *PreviousMediaParamsscip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests/media_control`/PreviousMediaParams#) (*PreviousMediaResponsescip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests/media_control`/PreviousMediaResponse#, error) {
35 data := &PreviousMediaResponsescip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests/media_control`/PreviousMediaResponse#{}
36 if err := c.SendRequestscip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests`/Client#SendRequest().(params, data); err != nil {
37 return nil, err
38 }
39 return data, nil
40 }