contentdirectory

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 contentdirectory is a generated ContentDirectory package.

Index

Constants

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

type BrowseArgs struct {
	Xmlns    string `xml:"xmlns:u,attr"`
	ObjectID string `xml:"ObjectID"`
	// Allowed Value: BrowseMetadata
	// Allowed Value: BrowseDirectChildren
	BrowseFlag     string `xml:"BrowseFlag"`
	Filter         string `xml:"Filter"`
	StartingIndex  uint32 `xml:"StartingIndex"`
	RequestedCount uint32 `xml:"RequestedCount"`
	SortCriteria   string `xml:"SortCriteria"`
}

type BrowseResponse

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

type Browseable

type Browseable bool

type ContainerUpdateIDs

type ContainerUpdateIDs string

type CreateObjectArgs

type CreateObjectArgs struct {
	Xmlns       string `xml:"xmlns:u,attr"`
	ContainerID string `xml:"ContainerID"`
	Elements    string `xml:"Elements"`
}

type CreateObjectResponse

type CreateObjectResponse struct {
	ObjectID string `xml:"ObjectID"`
	Result   string `xml:"Result"`
}

type DestroyObjectArgs

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

type DestroyObjectResponse

type DestroyObjectResponse struct {
}

type FavoritePresetsUpdateID

type FavoritePresetsUpdateID string

type FavoritesUpdateID

type FavoritesUpdateID string

type FindPrefixArgs

type FindPrefixArgs struct {
	Xmlns    string `xml:"xmlns:u,attr"`
	ObjectID string `xml:"ObjectID"`
	Prefix   string `xml:"Prefix"`
}

type FindPrefixResponse

type FindPrefixResponse struct {
	StartingIndex uint32 `xml:"StartingIndex"`
	UpdateID      uint32 `xml:"UpdateID"`
}

type GetAlbumArtistDisplayOptionArgs

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

type GetAlbumArtistDisplayOptionResponse

type GetAlbumArtistDisplayOptionResponse struct {
	AlbumArtistDisplayOption string `xml:"AlbumArtistDisplayOption"`
}

type GetAllPrefixLocationsArgs

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

type GetAllPrefixLocationsResponse

type GetAllPrefixLocationsResponse struct {
	TotalPrefixes     uint32 `xml:"TotalPrefixes"`
	PrefixAndIndexCSV string `xml:"PrefixAndIndexCSV"`
	UpdateID          uint32 `xml:"UpdateID"`
}

type GetBrowseableArgs

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

type GetBrowseableResponse

type GetBrowseableResponse struct {
	IsBrowseable bool `xml:"IsBrowseable"`
}

type GetLastIndexChangeArgs

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

type GetLastIndexChangeResponse

type GetLastIndexChangeResponse struct {
	LastIndexChange string `xml:"LastIndexChange"`
}

type GetSearchCapabilitiesArgs

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

type GetSearchCapabilitiesResponse

type GetSearchCapabilitiesResponse struct {
	SearchCaps string `xml:"SearchCaps"`
}

type GetShareIndexInProgressArgs

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

type GetShareIndexInProgressResponse

type GetShareIndexInProgressResponse struct {
	IsIndexing bool `xml:"IsIndexing"`
}

type GetSortCapabilitiesArgs

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

type GetSortCapabilitiesResponse

type GetSortCapabilitiesResponse struct {
	SortCaps string `xml:"SortCaps"`
}

type GetSystemUpdateIDArgs

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

type GetSystemUpdateIDResponse

type GetSystemUpdateIDResponse struct {
	Id uint32 `xml:"Id"`
}

type Property

type Property struct {
	XMLName                 xml.Name                 `xml:"property"`
	SystemUpdateID          *SystemUpdateID          `xml:"SystemUpdateID"`
	ContainerUpdateIDs      *ContainerUpdateIDs      `xml:"ContainerUpdateIDs"`
	ShareIndexInProgress    *ShareIndexInProgress    `xml:"ShareIndexInProgress"`
	ShareIndexLastError     *ShareIndexLastError     `xml:"ShareIndexLastError"`
	UserRadioUpdateID       *UserRadioUpdateID       `xml:"UserRadioUpdateID"`
	SavedQueuesUpdateID     *SavedQueuesUpdateID     `xml:"SavedQueuesUpdateID"`
	ShareListUpdateID       *ShareListUpdateID       `xml:"ShareListUpdateID"`
	RecentlyPlayedUpdateID  *RecentlyPlayedUpdateID  `xml:"RecentlyPlayedUpdateID"`
	Browseable              *Browseable              `xml:"Browseable"`
	RadioFavoritesUpdateID  *RadioFavoritesUpdateID  `xml:"RadioFavoritesUpdateID"`
	RadioLocationUpdateID   *RadioLocationUpdateID   `xml:"RadioLocationUpdateID"`
	FavoritesUpdateID       *FavoritesUpdateID       `xml:"FavoritesUpdateID"`
	FavoritePresetsUpdateID *FavoritePresetsUpdateID `xml:"FavoritePresetsUpdateID"`
}

type RadioFavoritesUpdateID

type RadioFavoritesUpdateID uint32

type RadioLocationUpdateID

type RadioLocationUpdateID uint32

type RecentlyPlayedUpdateID

type RecentlyPlayedUpdateID string

type RefreshShareIndexArgs

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

type RefreshShareIndexResponse

type RefreshShareIndexResponse struct {
}

type RequestResortArgs

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

type RequestResortResponse

type RequestResortResponse struct {
}

type SavedQueuesUpdateID

type SavedQueuesUpdateID string

type Service

type Service struct {
	SystemUpdateID          *SystemUpdateID
	ContainerUpdateIDs      *ContainerUpdateIDs
	ShareIndexInProgress    *ShareIndexInProgress
	ShareIndexLastError     *ShareIndexLastError
	UserRadioUpdateID       *UserRadioUpdateID
	SavedQueuesUpdateID     *SavedQueuesUpdateID
	ShareListUpdateID       *ShareListUpdateID
	RecentlyPlayedUpdateID  *RecentlyPlayedUpdateID
	Browseable              *Browseable
	RadioFavoritesUpdateID  *RadioFavoritesUpdateID
	RadioLocationUpdateID   *RadioLocationUpdateID
	FavoritesUpdateID       *FavoritesUpdateID
	FavoritePresetsUpdateID *FavoritePresetsUpdateID
	// contains filtered or unexported fields
}

func NewService

func NewService(opts ...ServiceOption) *Service

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) CreateObject

func (s *Service) CreateObject(args *CreateObjectArgs) (*CreateObjectResponse, error)

func (*Service) DestroyObject

func (s *Service) DestroyObject(args *DestroyObjectArgs) (*DestroyObjectResponse, error)

func (*Service) EventEndpoint

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

func (*Service) FindPrefix

func (s *Service) FindPrefix(args *FindPrefixArgs) (*FindPrefixResponse, error)

func (*Service) GetAlbumArtistDisplayOption

func (s *Service) GetAlbumArtistDisplayOption(args *GetAlbumArtistDisplayOptionArgs) (*GetAlbumArtistDisplayOptionResponse, error)

func (*Service) GetAllPrefixLocations

func (s *Service) GetAllPrefixLocations(args *GetAllPrefixLocationsArgs) (*GetAllPrefixLocationsResponse, error)

func (*Service) GetBrowseable

func (s *Service) GetBrowseable(args *GetBrowseableArgs) (*GetBrowseableResponse, error)

func (*Service) GetLastIndexChange

func (s *Service) GetLastIndexChange(args *GetLastIndexChangeArgs) (*GetLastIndexChangeResponse, error)

func (*Service) GetSearchCapabilities

func (s *Service) GetSearchCapabilities(args *GetSearchCapabilitiesArgs) (*GetSearchCapabilitiesResponse, error)

func (*Service) GetShareIndexInProgress

func (s *Service) GetShareIndexInProgress(args *GetShareIndexInProgressArgs) (*GetShareIndexInProgressResponse, error)

func (*Service) GetSortCapabilities

func (s *Service) GetSortCapabilities(args *GetSortCapabilitiesArgs) (*GetSortCapabilitiesResponse, error)

func (*Service) GetSystemUpdateID

func (s *Service) GetSystemUpdateID(args *GetSystemUpdateIDArgs) (*GetSystemUpdateIDResponse, error)

func (*Service) Location

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

func (*Service) ParseEvent

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

func (*Service) RefreshShareIndex

func (s *Service) RefreshShareIndex(args *RefreshShareIndexArgs) (*RefreshShareIndexResponse, error)

func (*Service) RequestResort

func (s *Service) RequestResort(args *RequestResortArgs) (*RequestResortResponse, error)

func (*Service) SetBrowseable

func (s *Service) SetBrowseable(args *SetBrowseableArgs) (*SetBrowseableResponse, error)

func (*Service) UpdateObject

func (s *Service) UpdateObject(args *UpdateObjectArgs) (*UpdateObjectResponse, error)

type ServiceOption

type ServiceOption func(*Service)

func WithClient

func WithClient(c *http.Client) ServiceOption

func WithLocation

func WithLocation(u *url.URL) ServiceOption

type SetBrowseableArgs

type SetBrowseableArgs struct {
	Xmlns      string `xml:"xmlns:u,attr"`
	Browseable bool   `xml:"Browseable"`
}

type SetBrowseableResponse

type SetBrowseableResponse struct {
}

type ShareIndexInProgress

type ShareIndexInProgress bool

type ShareIndexLastError

type ShareIndexLastError string

type ShareListUpdateID

type ShareListUpdateID string

type SystemUpdateID

type SystemUpdateID uint32

type UpdateObjectArgs

type UpdateObjectArgs struct {
	Xmlns           string `xml:"xmlns:u,attr"`
	ObjectID        string `xml:"ObjectID"`
	CurrentTagValue string `xml:"CurrentTagValue"`
	NewTagValue     string `xml:"NewTagValue"`
}

type UpdateObjectResponse

type UpdateObjectResponse struct {
}

type UpnpEvent

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

type UserRadioUpdateID

type UserRadioUpdateID string

Jump to

Keyboard shortcuts

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