// Copyright (c) Arlo Godfrey. All Rights Reserved. // Licensed under the GNU Lesser General Public License, Version 3.0 with additional terms. // See the LICENSE, LICENSE.LESSER and LICENSE.ADDITIONAL files in the project root for more information. using System; using System.Threading; using System.Threading.Tasks; using StrixMusic.Sdk.BaseModels; namespace StrixMusic.Sdk.CoreModels { /// /// Represents an audio stream with metadata that belongs to an . /// /// This interface should be implemented by a core. public interface ICoreTrack : ITrackBase, ICoreArtistCollection, ICoreGenreCollection, ICoreMember { /// /// An object that this track belongs to. /// ICoreAlbum? Album { get; } /// /// The lyrics for this track. /// ICoreLyrics? Lyrics { get; } /// /// A of items related to this item. /// ICorePlayableCollectionGroup? RelatedItems { get; } /// /// Changes the for this track. /// /// The new lyrics data. /// A cancellation token that may be used to cancel the ongoing task. /// A representing the asynchronous operation. Task ChangeLyricsAsync(ICoreLyrics? lyrics, CancellationToken cancellationToken = default); /// /// Fires when the metadata changes. /// event EventHandler? AlbumChanged; /// /// Fires when the metadata changes. /// event EventHandler? LyricsChanged; /// /// Changes the album for this track. /// /// The new album. /// A cancellation token that may be used to cancel the ongoing task. /// A representing the asynchronous operation. Task ChangeAlbumAsync(ICoreAlbum? albums, CancellationToken cancellationToken = default); } }