1.0-dev7 (Video adding panel added)
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
using System.Threading.Tasks;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace VDownload.Core.Interfaces
|
||||
{
|
||||
internal interface IPlaylistService
|
||||
public interface IPlaylistService
|
||||
{
|
||||
#region PROPERTIES
|
||||
|
||||
@@ -15,9 +16,9 @@ namespace VDownload.Core.Interfaces
|
||||
|
||||
#region METHODS
|
||||
|
||||
Task GetMetadataAsync();
|
||||
Task GetMetadataAsync(CancellationToken cancellationToken = default);
|
||||
|
||||
Task GetVideosAsync(int numberOfVideos);
|
||||
Task GetVideosAsync(int numberOfVideos, CancellationToken cancellationToken = default);
|
||||
|
||||
#endregion
|
||||
}
|
||||
|
||||
@@ -12,13 +12,16 @@ namespace VDownload.Core.Interfaces
|
||||
{
|
||||
#region PROPERTIES
|
||||
|
||||
// VIDEO PROPERTIES
|
||||
string ID { get; }
|
||||
Uri VideoUrl { get; }
|
||||
string Title { get; }
|
||||
string Author { get; }
|
||||
DateTime Date { get; }
|
||||
TimeSpan Duration { get; }
|
||||
long Views { get; }
|
||||
Uri Thumbnail { get; }
|
||||
Stream[] Streams { get; }
|
||||
|
||||
#endregion
|
||||
|
||||
@@ -27,10 +30,10 @@ namespace VDownload.Core.Interfaces
|
||||
#region METHODS
|
||||
|
||||
// GET VIDEO METADATA
|
||||
Task GetMetadataAsync();
|
||||
Task GetMetadataAsync(CancellationToken cancellationToken = default);
|
||||
|
||||
// GET VIDEO STREAMS
|
||||
Task GetStreamsAsync();
|
||||
Task GetStreamsAsync(CancellationToken cancellationToken = default);
|
||||
|
||||
// DOWNLOAD VIDEO
|
||||
Task<StorageFile> DownloadAndTranscodeAsync(StorageFolder downloadingFolder, Stream audioVideoStream, MediaFileExtension extension, MediaType mediaType, TimeSpan trimStart, TimeSpan trimEnd, CancellationToken cancellationToken = default);
|
||||
|
||||
Reference in New Issue
Block a user