Files
VDownload/VDownload.Core/Interfaces/IPlaylistService.cs

32 lines
662 B
C#
Raw Normal View History

2022-03-05 02:39:37 +01:00
using System;
using System.Threading;
2022-02-26 14:32:34 +01:00
using System.Threading.Tasks;
namespace VDownload.Core.Interfaces
{
2022-02-26 14:32:34 +01:00
public interface IPlaylistService
{
#region PROPERTIES
2022-03-02 22:13:28 +01:00
// PLAYLIST PROPERTIES
string ID { get; }
2022-03-05 02:39:37 +01:00
Uri PlaylistUrl { get; }
string Name { get; }
2022-03-05 02:39:37 +01:00
IVideoService[] Videos { get; }
#endregion
#region METHODS
2022-03-02 22:13:28 +01:00
// GET PLAYLIST METADATA
2022-02-26 14:32:34 +01:00
Task GetMetadataAsync(CancellationToken cancellationToken = default);
2022-03-02 22:13:28 +01:00
// GET VIDEOS FROM PLAYLIST
2022-02-26 14:32:34 +01:00
Task GetVideosAsync(int numberOfVideos, CancellationToken cancellationToken = default);
#endregion
}
}