Class LoadResult.PlaylistLoaded
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
PlaylistInfoPlaylistInfoThe metadata of the playlist.
TracksIReadOnlyList<Track>The tracks of the playlist.
PluginInfoJsonElement?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
PlaylistInfo
The metadata of the playlist.
public PlaylistInfo PlaylistInfo { get; init; }
Property Value
PluginInfo
The plugin data the server attached to the playlist, raw JSON.
public JsonElement? PluginInfo { get; init; }
Property Value
Tracks
The tracks of the playlist.
public IReadOnlyList<Track> Tracks { get; init; }
Property Value
Methods
Equals(PlaylistLoaded?)
Indicates whether the loads carry the same members.
public bool Equals(LoadResult.PlaylistLoaded? other)
Parameters
otherLoadResult.PlaylistLoadedThe 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.