contentdirectory

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Body

type Body struct {
	XMLName                     xml.Name                         `xml:"s:Body"`
	GetSearchCapabilities       *GetSearchCapabilitiesArgs       `xml:"u:GetSearchCapabilities,omitempty"`
	GetSortCapabilities         *GetSortCapabilitiesArgs         `xml:"u:GetSortCapabilities,omitempty"`
	GetSystemUpdateID           *GetSystemUpdateIDArgs           `xml:"u:GetSystemUpdateID,omitempty"`
	GetAlbumArtistDisplayOption *GetAlbumArtistDisplayOptionArgs `xml:"u:GetAlbumArtistDisplayOption,omitempty"`
	GetLastIndexChange          *GetLastIndexChangeArgs          `xml:"u:GetLastIndexChange,omitempty"`
	Browse                      *BrowseArgs                      `xml:"u:Browse,omitempty"`
	FindPrefix                  *FindPrefixArgs                  `xml:"u:FindPrefix,omitempty"`
	GetAllPrefixLocations       *GetAllPrefixLocationsArgs       `xml:"u:GetAllPrefixLocations,omitempty"`
	CreateObject                *CreateObjectArgs                `xml:"u:CreateObject,omitempty"`
	UpdateObject                *UpdateObjectArgs                `xml:"u:UpdateObject,omitempty"`
	DestroyObject               *DestroyObjectArgs               `xml:"u:DestroyObject,omitempty"`
	RefreshShareIndex           *RefreshShareIndexArgs           `xml:"u:RefreshShareIndex,omitempty"`
	RequestResort               *RequestResortArgs               `xml:"u:RequestResort,omitempty"`
	GetShareIndexInProgress     *GetShareIndexInProgressArgs     `xml:"u:GetShareIndexInProgress,omitempty"`
	GetBrowseable               *GetBrowseableArgs               `xml:"u:GetBrowseable,omitempty"`
	SetBrowseable               *SetBrowseableArgs               `xml:"u:SetBrowseable,omitempty"`
}

type BodyResponse

type BodyResponse struct {
	XMLName                     xml.Name                             `xml:"Body"`
	GetSearchCapabilities       *GetSearchCapabilitiesResponse       `xml:"GetSearchCapabilitiesResponse,omitempty"`
	GetSortCapabilities         *GetSortCapabilitiesResponse         `xml:"GetSortCapabilitiesResponse,omitempty"`
	GetSystemUpdateID           *GetSystemUpdateIDResponse           `xml:"GetSystemUpdateIDResponse,omitempty"`
	GetAlbumArtistDisplayOption *GetAlbumArtistDisplayOptionResponse `xml:"GetAlbumArtistDisplayOptionResponse,omitempty"`
	GetLastIndexChange          *GetLastIndexChangeResponse          `xml:"GetLastIndexChangeResponse,omitempty"`
	Browse                      *BrowseResponse                      `xml:"BrowseResponse,omitempty"`
	FindPrefix                  *FindPrefixResponse                  `xml:"FindPrefixResponse,omitempty"`
	GetAllPrefixLocations       *GetAllPrefixLocationsResponse       `xml:"GetAllPrefixLocationsResponse,omitempty"`
	CreateObject                *CreateObjectResponse                `xml:"CreateObjectResponse,omitempty"`
	UpdateObject                *UpdateObjectResponse                `xml:"UpdateObjectResponse,omitempty"`
	DestroyObject               *DestroyObjectResponse               `xml:"DestroyObjectResponse,omitempty"`
	RefreshShareIndex           *RefreshShareIndexResponse           `xml:"RefreshShareIndexResponse,omitempty"`
	RequestResort               *RequestResortResponse               `xml:"RequestResortResponse,omitempty"`
	GetShareIndexInProgress     *GetShareIndexInProgressResponse     `xml:"GetShareIndexInProgressResponse,omitempty"`
	GetBrowseable               *GetBrowseableResponse               `xml:"GetBrowseableResponse,omitempty"`
	SetBrowseable               *SetBrowseableResponse               `xml:"SetBrowseableResponse,omitempty"`
}

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 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 Envelope

type Envelope struct {
	XMLName       xml.Name `xml:"s:Envelope"`
	Xmlns         string   `xml:"xmlns:s,attr"`
	EncodingStyle string   `xml:"s:encodingStyle,attr"`
	Body          Body     `xml:"s:Body"`
}

type EnvelopeResponse

type EnvelopeResponse struct {
	XMLName       xml.Name     `xml:"Envelope"`
	Xmlns         string       `xml:"xmlns:s,attr"`
	EncodingStyle string       `xml:"encodingStyle,attr"`
	Body          BodyResponse `xml:"Body"`
}

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 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 Service

type Service struct {
	ControlEndpoint *url.URL
	EventEndpoint   *url.URL
}

func NewService

func NewService(deviceUrl *url.URL) *Service

func (*Service) Browse

func (s *Service) Browse(httpClient *http.Client, args *BrowseArgs) (*BrowseResponse, error)

func (*Service) CreateObject

func (s *Service) CreateObject(httpClient *http.Client, args *CreateObjectArgs) (*CreateObjectResponse, error)

func (*Service) DestroyObject

func (s *Service) DestroyObject(httpClient *http.Client, args *DestroyObjectArgs) (*DestroyObjectResponse, error)

func (*Service) FindPrefix

func (s *Service) FindPrefix(httpClient *http.Client, args *FindPrefixArgs) (*FindPrefixResponse, error)

func (*Service) GetAlbumArtistDisplayOption

func (s *Service) GetAlbumArtistDisplayOption(httpClient *http.Client, args *GetAlbumArtistDisplayOptionArgs) (*GetAlbumArtistDisplayOptionResponse, error)

func (*Service) GetAllPrefixLocations

func (s *Service) GetAllPrefixLocations(httpClient *http.Client, args *GetAllPrefixLocationsArgs) (*GetAllPrefixLocationsResponse, error)

func (*Service) GetBrowseable

func (s *Service) GetBrowseable(httpClient *http.Client, args *GetBrowseableArgs) (*GetBrowseableResponse, error)

func (*Service) GetLastIndexChange

func (s *Service) GetLastIndexChange(httpClient *http.Client, args *GetLastIndexChangeArgs) (*GetLastIndexChangeResponse, error)

func (*Service) GetSearchCapabilities

func (s *Service) GetSearchCapabilities(httpClient *http.Client, args *GetSearchCapabilitiesArgs) (*GetSearchCapabilitiesResponse, error)

func (*Service) GetShareIndexInProgress

func (s *Service) GetShareIndexInProgress(httpClient *http.Client, args *GetShareIndexInProgressArgs) (*GetShareIndexInProgressResponse, error)

func (*Service) GetSortCapabilities

func (s *Service) GetSortCapabilities(httpClient *http.Client, args *GetSortCapabilitiesArgs) (*GetSortCapabilitiesResponse, error)

func (*Service) GetSystemUpdateID

func (s *Service) GetSystemUpdateID(httpClient *http.Client, args *GetSystemUpdateIDArgs) (*GetSystemUpdateIDResponse, error)

func (*Service) RefreshShareIndex

func (s *Service) RefreshShareIndex(httpClient *http.Client, args *RefreshShareIndexArgs) (*RefreshShareIndexResponse, error)

func (*Service) RequestResort

func (s *Service) RequestResort(httpClient *http.Client, args *RequestResortArgs) (*RequestResortResponse, error)

func (*Service) SetBrowseable

func (s *Service) SetBrowseable(httpClient *http.Client, args *SetBrowseableArgs) (*SetBrowseableResponse, error)

func (*Service) UpdateObject

func (s *Service) UpdateObject(httpClient *http.Client, args *UpdateObjectArgs) (*UpdateObjectResponse, error)

type SetBrowseableArgs

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

type SetBrowseableResponse

type SetBrowseableResponse struct {
}

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 {
}

Jump to

Keyboard shortcuts

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