grouprenderingcontrol

package
v0.0.0-...-cbcd650 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 4, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package grouprenderingcontrol is a generated GroupRenderingControl package.

Index

Constants

View Source
const (
	ServiceURN     = "urn:schemas-upnp-org:service:GroupRenderingControl:1"
	EncodingSchema = "http://schemas.xmlsoap.org/soap/encoding/"
	EnvelopeSchema = "http://schemas.xmlsoap.org/soap/envelope/"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type GetGroupMuteArgs

type GetGroupMuteArgs struct {
	Xmlns      string `xml:"xmlns:u,attr"`
	InstanceID uint32 `xml:"InstanceID"`
}

type GetGroupMuteResponse

type GetGroupMuteResponse struct {
	CurrentMute bool `xml:"CurrentMute"`
}

type GetGroupVolumeArgs

type GetGroupVolumeArgs struct {
	Xmlns      string `xml:"xmlns:u,attr"`
	InstanceID uint32 `xml:"InstanceID"`
}

type GetGroupVolumeResponse

type GetGroupVolumeResponse struct {
	CurrentVolume uint16 `xml:"CurrentVolume"`
}

type GroupMute

type GroupMute bool

type GroupVolume

type GroupVolume uint16

type GroupVolumeChangeable

type GroupVolumeChangeable bool

type Property

type Property struct {
	XMLName               xml.Name               `xml:"property"`
	GroupMute             *GroupMute             `xml:"GroupMute"`
	GroupVolume           *GroupVolume           `xml:"GroupVolume"`
	GroupVolumeChangeable *GroupVolumeChangeable `xml:"GroupVolumeChangeable"`
}

type Service

type Service struct {
	GroupMute             *GroupMute
	GroupVolume           *GroupVolume
	GroupVolumeChangeable *GroupVolumeChangeable
	// contains filtered or unexported fields
}

func NewService

func NewService(opts ...ServiceOption) *Service

func (*Service) Client

func (s *Service) Client() *http.Client

func (*Service) ControlEndpoint

func (s *Service) ControlEndpoint() *url.URL

func (*Service) EventEndpoint

func (s *Service) EventEndpoint() *url.URL

func (*Service) GetGroupMute

func (s *Service) GetGroupMute(args *GetGroupMuteArgs) (*GetGroupMuteResponse, error)

func (*Service) GetGroupVolume

func (s *Service) GetGroupVolume(args *GetGroupVolumeArgs) (*GetGroupVolumeResponse, error)

func (*Service) Location

func (s *Service) Location() *url.URL

func (*Service) ParseEvent

func (zp *Service) ParseEvent(body []byte) []interface{}

func (*Service) SetGroupMute

func (s *Service) SetGroupMute(args *SetGroupMuteArgs) (*SetGroupMuteResponse, error)

func (*Service) SetGroupVolume

func (s *Service) SetGroupVolume(args *SetGroupVolumeArgs) (*SetGroupVolumeResponse, error)

func (*Service) SetRelativeGroupVolume

func (s *Service) SetRelativeGroupVolume(args *SetRelativeGroupVolumeArgs) (*SetRelativeGroupVolumeResponse, error)

func (*Service) SnapshotGroupVolume

func (s *Service) SnapshotGroupVolume(args *SnapshotGroupVolumeArgs) (*SnapshotGroupVolumeResponse, error)

type ServiceOption

type ServiceOption func(*Service)

func WithClient

func WithClient(c *http.Client) ServiceOption

func WithLocation

func WithLocation(u *url.URL) ServiceOption

type SetGroupMuteArgs

type SetGroupMuteArgs struct {
	Xmlns       string `xml:"xmlns:u,attr"`
	InstanceID  uint32 `xml:"InstanceID"`
	DesiredMute bool   `xml:"DesiredMute"`
}

type SetGroupMuteResponse

type SetGroupMuteResponse struct {
}

type SetGroupVolumeArgs

type SetGroupVolumeArgs struct {
	Xmlns      string `xml:"xmlns:u,attr"`
	InstanceID uint32 `xml:"InstanceID"`
	// Allowed Range: 0 -> 100 step: 1
	DesiredVolume uint16 `xml:"DesiredVolume"`
}

type SetGroupVolumeResponse

type SetGroupVolumeResponse struct {
}

type SetRelativeGroupVolumeArgs

type SetRelativeGroupVolumeArgs struct {
	Xmlns      string `xml:"xmlns:u,attr"`
	InstanceID uint32 `xml:"InstanceID"`
	Adjustment int32  `xml:"Adjustment"`
}

type SetRelativeGroupVolumeResponse

type SetRelativeGroupVolumeResponse struct {
	NewVolume uint16 `xml:"NewVolume"`
}

type SnapshotGroupVolumeArgs

type SnapshotGroupVolumeArgs struct {
	Xmlns      string `xml:"xmlns:u,attr"`
	InstanceID uint32 `xml:"InstanceID"`
}

type SnapshotGroupVolumeResponse

type SnapshotGroupVolumeResponse struct {
}

type UpnpEvent

type UpnpEvent struct {
	XMLName      xml.Name   `xml:"propertyset"`
	XMLNameSpace string     `xml:"xmlns:e,attr"`
	Properties   []Property `xml:"property"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL