Table of Contents

Class PlaylistInfo

Namespace
Nyra.Entities
Assembly
Nyra.dll

The metadata of a loaded playlist.

public sealed record PlaylistInfo : IEquatable<PlaylistInfo>
Inheritance
PlaylistInfo
Implements
Inherited Members

Properties

Name

The name of the playlist.

[JsonPropertyName("name")]
[JsonInclude]
public string Name { get; }

Property Value

string

SelectedTrack

Zero-based index of the selected track, or -1 when none is selected.

[JsonPropertyName("selectedTrack")]
[JsonInclude]
public int SelectedTrack { get; }

Property Value

int

Remarks

The index is whatever the server reported, no bounds against the playlist's track count are guaranteed, guard the upper bound before indexing with it.