Collections

Hierarchy (view full)

Constructors

Properties

statusInfo: Promise<any>

Undocumented

Methods

  • Apply list of collections (update them in DB).

    Parameters

    Returns void

  • Assign data from another collections manager.

    Parameters

    Returns void

  • Check collection with specified ID exists.

    Parameters

    • id: number

      ID of the collection

    Returns boolean

  • Delete Collection.

    Parameters

    Returns void

  • Gets class name of the object.

    Returns string

  • Get collection by its ID.

    Parameters

    • id: number

      ID of the collection to get

    Returns Collection

  • Gets collection by its content type.

    Parameters

    • colType: string

    Returns Collection

  • Gets collection to which a given object belongs (e.g. track, artist, composer, genre, ...).

    Parameters

    Returns Promise<any>

  • Get ID of a collection by given name.

    Parameters

    • Name: string

    Returns number

  • Get list of all collections.

    Parameters

    • Optional params: {
          cacheIsEmpty?: boolean;
          cacheVisibility?: boolean;
          includeEntireLibrary?: boolean;
      }
      • Optional cacheIsEmpty?: boolean

        Undocumented

      • Optional cacheVisibility?: boolean

        Undocumented

      • Optional includeEntireLibrary?: boolean

        Undocumented

    Returns Promise<CollectionList>

  • Get name of a collection with specified name

    Parameters

    • id: number

      ID of the collection

    Returns string

  • Gets copy of a collections manager.

    Returns Collections

  • Gets 'Entire Library' collection

    Returns Collection

  • Get ID of a collection with type 'music'.

    Returns number

  • Create new, empty collection.

    Returns Collection

  • Check collection is a type 'podcast'.

    Parameters

    • id: number

      ID of a collection

    Returns boolean

  • Check collection is a type 'video'.

    Parameters

    • id: number

      ID of a collection

    Returns boolean

  • Call defined method with locked data so user can access them.

    Parameters

    • func: (() => any)

      Method to call

        • (): any
        • Returns any

    Returns void

  • Returns void

    Undocumented

  • Refresh all collections.

    Returns void

  • Save all collections to database.

    Parameters

    Returns Promise<any>

Events

event_change: (() => void)

Type declaration

    • (): void
    • Returns void