ContentDirectory

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContentDirectory

type ContentDirectory struct {
	Send func(action, body, targetTag string) (string, error)
}

func New

func New(send func(action, body, targetTag string) (string, error)) ContentDirectory

func (*ContentDirectory) Browse

func (s *ContentDirectory) Browse(objectID string, browseFlag string, filter string, startingIndex int, requestedCount int, sortCriteria string) (browseResponse, error)

Prefer methods `zp.BrowseMusicLibrary`, `zp.BrowsePlaylist`, `zp.BrowseQue`.

`objectID` may be one of `Gonos.ContentTypes.*` or a custom id

func (*ContentDirectory) CreateObject

func (s *ContentDirectory) CreateObject(containerID string, elements string) (createObjectResponse, error)

func (*ContentDirectory) DestroyObject

func (s *ContentDirectory) DestroyObject(objectID string) error

`objectID` may be one of `Gonos.ContentTypes.*` or a custom id

func (*ContentDirectory) FindPrefix

func (s *ContentDirectory) FindPrefix(objectID string, prefix string) (findPrefixResponse, error)

`objectID` may be one of `Gonos.ContentTypes.*` or a custom id

func (*ContentDirectory) GetAlbumArtistDisplayOption

func (s *ContentDirectory) GetAlbumArtistDisplayOption() (AlbumArtistDisplayOption string, err error)

Returns one of `WMP`, `ITUNES` or `NONE`

func (*ContentDirectory) GetAllPrefixLocations

func (s *ContentDirectory) GetAllPrefixLocations(objectID string) (getAllPrefixLocationsResponse, error)

`objectID` may be one of `Gonos.ContentTypes.*` or a custom id

func (*ContentDirectory) GetBrowseable

func (s *ContentDirectory) GetBrowseable() (IsBrowseable bool, err error)

func (*ContentDirectory) GetLastIndexChange

func (s *ContentDirectory) GetLastIndexChange() (LastIndexChange time.Time, err error)

func (*ContentDirectory) GetSearchCapabilities

func (s *ContentDirectory) GetSearchCapabilities() (SearchCaps string, err error)

func (*ContentDirectory) GetShareIndexInProgress

func (s *ContentDirectory) GetShareIndexInProgress() (IsIndexing bool, err error)

func (*ContentDirectory) GetSortCapabilities

func (s *ContentDirectory) GetSortCapabilities() (SortCaps string, err error)

func (*ContentDirectory) GetSystemUpdateID

func (s *ContentDirectory) GetSystemUpdateID() (Id int, err error)

func (*ContentDirectory) RefreshShareIndex

func (s *ContentDirectory) RefreshShareIndex(albumArtistDisplayOption string) error

`albumArtistDisplayOption` should be one of `Gonos.AlbumArtistDisplayOptionModes.*`.

func (*ContentDirectory) RequestResort

func (s *ContentDirectory) RequestResort(sortOrder string) error

func (*ContentDirectory) SetBrowseable

func (s *ContentDirectory) SetBrowseable(state bool) error

func (*ContentDirectory) UpdateObject

func (s *ContentDirectory) UpdateObject(objectID string, currentTagValue string, newTagValue string) error

`objectID` may be one of `Gonos.ContentTypes.*` or a custom id

Jump to

Keyboard shortcuts

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