queue

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 queue is a generated Queue package.

Index

Constants

View Source
const (
	ServiceURN     = "urn:schemas-upnp-org:service:Queue: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 AddMultipleURIsArgs

type AddMultipleURIsArgs struct {
	Xmlns                           string `xml:"xmlns:u,attr"`
	QueueID                         uint32 `xml:"QueueID"`
	UpdateID                        uint32 `xml:"UpdateID"`
	ContainerURI                    string `xml:"ContainerURI"`
	ContainerMetaData               string `xml:"ContainerMetaData"`
	DesiredFirstTrackNumberEnqueued uint32 `xml:"DesiredFirstTrackNumberEnqueued"`
	EnqueueAsNext                   bool   `xml:"EnqueueAsNext"`
	NumberOfURIs                    uint32 `xml:"NumberOfURIs"`
	EnqueuedURIsAndMetaData         string `xml:"EnqueuedURIsAndMetaData"`
}

type AddMultipleURIsResponse

type AddMultipleURIsResponse struct {
	FirstTrackNumberEnqueued uint32 `xml:"FirstTrackNumberEnqueued"`
	NumTracksAdded           uint32 `xml:"NumTracksAdded"`
	NewQueueLength           uint32 `xml:"NewQueueLength"`
	NewUpdateID              uint32 `xml:"NewUpdateID"`
}

type AddURIArgs

type AddURIArgs struct {
	Xmlns                           string `xml:"xmlns:u,attr"`
	QueueID                         uint32 `xml:"QueueID"`
	UpdateID                        uint32 `xml:"UpdateID"`
	EnqueuedURI                     string `xml:"EnqueuedURI"`
	EnqueuedURIMetaData             string `xml:"EnqueuedURIMetaData"`
	DesiredFirstTrackNumberEnqueued uint32 `xml:"DesiredFirstTrackNumberEnqueued"`
	EnqueueAsNext                   bool   `xml:"EnqueueAsNext"`
}

type AddURIResponse

type AddURIResponse struct {
	FirstTrackNumberEnqueued uint32 `xml:"FirstTrackNumberEnqueued"`
	NumTracksAdded           uint32 `xml:"NumTracksAdded"`
	NewQueueLength           uint32 `xml:"NewQueueLength"`
	NewUpdateID              uint32 `xml:"NewUpdateID"`
}

type AttachQueueArgs

type AttachQueueArgs struct {
	Xmlns        string `xml:"xmlns:u,attr"`
	QueueOwnerID string `xml:"QueueOwnerID"`
}

type AttachQueueResponse

type AttachQueueResponse struct {
	QueueID           uint32 `xml:"QueueID"`
	QueueOwnerContext string `xml:"QueueOwnerContext"`
}

type BackupArgs

type BackupArgs struct {
	Xmlns string `xml:"xmlns:u,attr"`
}

type BackupResponse

type BackupResponse struct {
}

type BrowseArgs

type BrowseArgs struct {
	Xmlns          string `xml:"xmlns:u,attr"`
	QueueID        uint32 `xml:"QueueID"`
	StartingIndex  uint32 `xml:"StartingIndex"`
	RequestedCount uint32 `xml:"RequestedCount"`
}

type BrowseResponse

type BrowseResponse struct {
	Result         string `xml:"Result"`
	NumberReturned uint32 `xml:"NumberReturned"`
	TotalMatches   uint32 `xml:"TotalMatches"`
	UpdateID       uint32 `xml:"UpdateID"`
}

type CreateQueueArgs

type CreateQueueArgs struct {
	Xmlns             string `xml:"xmlns:u,attr"`
	QueueOwnerID      string `xml:"QueueOwnerID"`
	QueueOwnerContext string `xml:"QueueOwnerContext"`
	QueuePolicy       string `xml:"QueuePolicy"`
}

type CreateQueueResponse

type CreateQueueResponse struct {
	QueueID uint32 `xml:"QueueID"`
}

type LastChange

type LastChange string

type Property

type Property struct {
	XMLName    xml.Name    `xml:"property"`
	LastChange *LastChange `xml:"LastChange"`
}

type RemoveAllTracksArgs

type RemoveAllTracksArgs struct {
	Xmlns    string `xml:"xmlns:u,attr"`
	QueueID  uint32 `xml:"QueueID"`
	UpdateID uint32 `xml:"UpdateID"`
}

type RemoveAllTracksResponse

type RemoveAllTracksResponse struct {
	NewUpdateID uint32 `xml:"NewUpdateID"`
}

type RemoveTrackRangeArgs

type RemoveTrackRangeArgs struct {
	Xmlns          string `xml:"xmlns:u,attr"`
	QueueID        uint32 `xml:"QueueID"`
	UpdateID       uint32 `xml:"UpdateID"`
	StartingIndex  uint32 `xml:"StartingIndex"`
	NumberOfTracks uint32 `xml:"NumberOfTracks"`
}

type RemoveTrackRangeResponse

type RemoveTrackRangeResponse struct {
	NewUpdateID uint32 `xml:"NewUpdateID"`
}

type ReorderTracksArgs

type ReorderTracksArgs struct {
	Xmlns          string `xml:"xmlns:u,attr"`
	QueueID        uint32 `xml:"QueueID"`
	StartingIndex  uint32 `xml:"StartingIndex"`
	NumberOfTracks uint32 `xml:"NumberOfTracks"`
	InsertBefore   uint32 `xml:"InsertBefore"`
	UpdateID       uint32 `xml:"UpdateID"`
}

type ReorderTracksResponse

type ReorderTracksResponse struct {
	NewUpdateID uint32 `xml:"NewUpdateID"`
}

type ReplaceAllTracksArgs

type ReplaceAllTracksArgs struct {
	Xmlns                   string `xml:"xmlns:u,attr"`
	QueueID                 uint32 `xml:"QueueID"`
	UpdateID                uint32 `xml:"UpdateID"`
	ContainerURI            string `xml:"ContainerURI"`
	ContainerMetaData       string `xml:"ContainerMetaData"`
	CurrentTrackIndex       uint32 `xml:"CurrentTrackIndex"`
	NewCurrentTrackIndices  string `xml:"NewCurrentTrackIndices"`
	NumberOfURIs            uint32 `xml:"NumberOfURIs"`
	EnqueuedURIsAndMetaData string `xml:"EnqueuedURIsAndMetaData"`
}

type ReplaceAllTracksResponse

type ReplaceAllTracksResponse struct {
	NewQueueLength uint32 `xml:"NewQueueLength"`
	NewUpdateID    uint32 `xml:"NewUpdateID"`
}

type SaveAsSonosPlaylistArgs

type SaveAsSonosPlaylistArgs struct {
	Xmlns    string `xml:"xmlns:u,attr"`
	QueueID  uint32 `xml:"QueueID"`
	Title    string `xml:"Title"`
	ObjectID string `xml:"ObjectID"`
}

type SaveAsSonosPlaylistResponse

type SaveAsSonosPlaylistResponse struct {
	AssignedObjectID string `xml:"AssignedObjectID"`
}

type Service

type Service struct {
	LastChange *LastChange
	// contains filtered or unexported fields
}

func NewService

func NewService(opts ...ServiceOption) *Service

func (*Service) AddMultipleURIs

func (s *Service) AddMultipleURIs(args *AddMultipleURIsArgs) (*AddMultipleURIsResponse, error)

func (*Service) AddURI

func (s *Service) AddURI(args *AddURIArgs) (*AddURIResponse, error)

func (*Service) AttachQueue

func (s *Service) AttachQueue(args *AttachQueueArgs) (*AttachQueueResponse, error)

func (*Service) Backup

func (s *Service) Backup(args *BackupArgs) (*BackupResponse, error)

func (*Service) Browse

func (s *Service) Browse(args *BrowseArgs) (*BrowseResponse, error)

func (*Service) Client

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

func (*Service) ControlEndpoint

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

func (*Service) CreateQueue

func (s *Service) CreateQueue(args *CreateQueueArgs) (*CreateQueueResponse, error)

func (*Service) EventEndpoint

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

func (*Service) Location

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

func (*Service) ParseEvent

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

func (*Service) RemoveAllTracks

func (s *Service) RemoveAllTracks(args *RemoveAllTracksArgs) (*RemoveAllTracksResponse, error)

func (*Service) RemoveTrackRange

func (s *Service) RemoveTrackRange(args *RemoveTrackRangeArgs) (*RemoveTrackRangeResponse, error)

func (*Service) ReorderTracks

func (s *Service) ReorderTracks(args *ReorderTracksArgs) (*ReorderTracksResponse, error)

func (*Service) ReplaceAllTracks

func (s *Service) ReplaceAllTracks(args *ReplaceAllTracksArgs) (*ReplaceAllTracksResponse, error)

func (*Service) SaveAsSonosPlaylist

func (s *Service) SaveAsSonosPlaylist(args *SaveAsSonosPlaylistArgs) (*SaveAsSonosPlaylistResponse, error)

type ServiceOption

type ServiceOption func(*Service)

func WithClient

func WithClient(c *http.Client) ServiceOption

func WithLocation

func WithLocation(u *url.URL) ServiceOption

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