Table of Contents

Class LoadResult.SearchLoaded

Namespace
Nyra.Entities
Assembly
Nyra.dll

Search results were loaded.

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

Constructors

SearchLoaded(IReadOnlyList<Track>)

Search results were loaded.

public SearchLoaded(IReadOnlyList<Track> Tracks)

Parameters

Tracks IReadOnlyList<Track>

The tracks the search found.

Properties

LoadType

The load type of the result, always Search.

public override LoadType LoadType { get; }

Property Value

LoadType

Tracks

The tracks the search found.

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

Property Value

IReadOnlyList<Track>

Methods

Equals(SearchLoaded?)

Indicates whether the loads carry the same tracks.

public bool Equals(LoadResult.SearchLoaded? other)

Parameters

other LoadResult.SearchLoaded

The load to compare with.

Returns

bool

Whether the tracks match by content.

GetHashCode()

Returns a hash of the load's comparable members.

public override int GetHashCode()

Returns

int

The hash code.