Class LoadResult.SearchLoaded
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
TracksIReadOnlyList<Track>The tracks the search found.
Properties
LoadType
The load type of the result, always Search.
public override LoadType LoadType { get; }
Property Value
Tracks
The tracks the search found.
public IReadOnlyList<Track> Tracks { get; init; }
Property Value
Methods
Equals(SearchLoaded?)
Indicates whether the loads carry the same tracks.
public bool Equals(LoadResult.SearchLoaded? other)
Parameters
otherLoadResult.SearchLoadedThe 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.