Table of Contents

Class LoadResult.PlaylistLoaded

Namespace
Nyra.Entities
Assembly
Nyra.dll

A playlist was loaded.

public sealed record LoadResult.PlaylistLoaded : LoadResult, IEquatable<LoadResult>, IEquatable<LoadResult.PlaylistLoaded>
Inheritance
LoadResult.PlaylistLoaded
Implements
Inherited Members

Constructors

PlaylistLoaded(PlaylistInfo, IReadOnlyList<Track>, JsonElement?)

A playlist was loaded.

public PlaylistLoaded(PlaylistInfo PlaylistInfo, IReadOnlyList<Track> Tracks, JsonElement? PluginInfo = null)

Parameters

PlaylistInfo PlaylistInfo

The metadata of the playlist.

Tracks IReadOnlyList<Track>

The tracks of the playlist.

PluginInfo JsonElement?

The plugin data the server attached to the playlist, raw JSON.

Properties

LoadType

The load type of the result, always Playlist.

public override LoadType LoadType { get; }

Property Value

LoadType

PlaylistInfo

The metadata of the playlist.

public PlaylistInfo PlaylistInfo { get; init; }

Property Value

PlaylistInfo

PluginInfo

The plugin data the server attached to the playlist, raw JSON.

public JsonElement? PluginInfo { get; init; }

Property Value

JsonElement?

Tracks

The tracks of the playlist.

public IReadOnlyList<Track> Tracks { get; init; }

Property Value

IReadOnlyList<Track>

Methods

Equals(PlaylistLoaded?)

Indicates whether the loads carry the same members.

public bool Equals(LoadResult.PlaylistLoaded? other)

Parameters

other LoadResult.PlaylistLoaded

The load to compare with.

Returns

bool

Whether the members match, the tracks compared by content.

GetHashCode()

Returns a hash of the load's comparable members.

public override int GetHashCode()

Returns

int

The hash code.