// This file has been automatically generated. Don't edit it.

package sources

import requests "github.com/andreykaipov/goobs/api/requests"

/*
SetMuteParams represents the params body for the "SetMute" request.
Sets the mute status of a specified source.
Since 4.0.0.
*/
type SetMuteParams struct {
	requests.ParamsBasic

	// Desired mute status.
	Mute *bool `json:"mute,omitempty"`

	// Source name.
	Source string `json:"source,omitempty"`
}

// GetSelfName just returns "SetMute".
func (o *SetMuteParams) GetSelfName() string {
	return "SetMute"
}

/*
SetMuteResponse represents the response body for the "SetMute" request.
Sets the mute status of a specified source.
Since v4.0.0.
*/
type SetMuteResponse struct {
	requests.ResponseBasic
}

// SetMute sends the corresponding request to the connected OBS WebSockets server.
func (c *Client) SetMute(params *SetMuteParams) (*SetMuteResponse, error) {
	data := &SetMuteResponse{}
	if err := c.SendRequest(params, data); err != nil {
		return nil, err
	}
	return data, nil
}
