29 lines
575 B
C#
29 lines
575 B
C#
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace VDownload.Core.Interfaces
|
|
{
|
|
public interface IPlaylistService
|
|
{
|
|
#region PROPERTIES
|
|
|
|
// PLAYLIST PROPERTIES
|
|
string ID { get; }
|
|
string Name { get; }
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
#region METHODS
|
|
|
|
// GET PLAYLIST METADATA
|
|
Task GetMetadataAsync(CancellationToken cancellationToken = default);
|
|
|
|
// GET VIDEOS FROM PLAYLIST
|
|
Task GetVideosAsync(int numberOfVideos, CancellationToken cancellationToken = default);
|
|
|
|
#endregion
|
|
}
|
|
}
|