Video adding and subscriptions finished
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
using System;
|
||||
|
||||
namespace VDownload.Core.EventArgs
|
||||
{
|
||||
public class DownloadTaskEndedSuccessfullyEventArgs : System.EventArgs
|
||||
{
|
||||
#region CONSTRUCTORS
|
||||
|
||||
public DownloadTaskEndedSuccessfullyEventArgs(TimeSpan elapsedTime)
|
||||
{
|
||||
ElapsedTime = elapsedTime;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
#region PROPERTIES
|
||||
|
||||
public TimeSpan ElapsedTime { get; private set; }
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
using System;
|
||||
|
||||
namespace VDownload.Core.EventArgs
|
||||
{
|
||||
public class DownloadTaskEndedUnsuccessfullyEventArgs : System.EventArgs
|
||||
{
|
||||
#region CONSTRUCTORS
|
||||
|
||||
public DownloadTaskEndedUnsuccessfullyEventArgs(Exception exception)
|
||||
{
|
||||
Exception = exception;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
#region PROPERTIES
|
||||
|
||||
public Exception Exception { get; private set; }
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
24
VDownload.Core/EventArgs/DownloadTaskScheduledEventArgs.cs
Normal file
24
VDownload.Core/EventArgs/DownloadTaskScheduledEventArgs.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
using System;
|
||||
|
||||
namespace VDownload.Core.EventArgs
|
||||
{
|
||||
public class DownloadTaskScheduledEventArgs : System.EventArgs
|
||||
{
|
||||
#region CONSTRUCTORS
|
||||
|
||||
public DownloadTaskScheduledEventArgs(DateTime scheduledFor)
|
||||
{
|
||||
ScheduledFor = scheduledFor;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
#region PROPERTIES
|
||||
|
||||
public DateTime ScheduledFor { get; private set; }
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
using VDownload.Core.Enums;
|
||||
using VDownload.Core.Structs;
|
||||
|
||||
namespace VDownload.Core.EventArgs
|
||||
{
|
||||
public class DownloadTasksAddingRequestedEventArgs : System.EventArgs
|
||||
{
|
||||
#region CONSTRUCTORS
|
||||
|
||||
public DownloadTasksAddingRequestedEventArgs(DownloadTask[] downloadTasks, DownloadTasksAddingRequestSource requestSource)
|
||||
{
|
||||
DownloadTasks = downloadTasks;
|
||||
RequestSource = requestSource;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
#region PROPERTIES
|
||||
|
||||
public DownloadTask[] DownloadTasks { get; private set; }
|
||||
public DownloadTasksAddingRequestSource RequestSource { get; private set; }
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -4,6 +4,21 @@ namespace VDownload.Core.EventArgs
|
||||
{
|
||||
public class PlaylistSearchSuccessedEventArgs : System.EventArgs
|
||||
{
|
||||
public IPlaylist PlaylistService { get; set; }
|
||||
#region CONSTRUCTORS
|
||||
|
||||
public PlaylistSearchSuccessedEventArgs(IPlaylist playlist)
|
||||
{
|
||||
Playlist = playlist;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
#region PROPERTIES
|
||||
|
||||
public IPlaylist Playlist { get; private set; }
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16,8 +16,8 @@
|
||||
|
||||
#region PROPERTIES
|
||||
|
||||
public double Progress { get; set; }
|
||||
public bool IsCompleted { get; set; }
|
||||
public double Progress { get; private set; }
|
||||
public bool IsCompleted { get; private set; }
|
||||
|
||||
#endregion
|
||||
}
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
using VDownload.Core.Interfaces;
|
||||
|
||||
namespace VDownload.Core.EventArgs
|
||||
{
|
||||
public class SubscriptionLoadSuccessedEventArgs : System.EventArgs
|
||||
{
|
||||
#region CONSTRUCTORS
|
||||
|
||||
public SubscriptionLoadSuccessedEventArgs(IVideo[] videos)
|
||||
{
|
||||
Videos = videos;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
#region PROPERTIES
|
||||
|
||||
public IVideo[] Videos { get; private set; }
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
using VDownload.Core.Enums;
|
||||
using VDownload.Core.Structs;
|
||||
|
||||
namespace VDownload.Core.EventArgs
|
||||
{
|
||||
public class TasksAddingRequestedEventArgs : System.EventArgs
|
||||
{
|
||||
public TaskData[] TaskData { get; set; }
|
||||
public TaskAddingRequestSource RequestSource { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -4,6 +4,21 @@ namespace VDownload.Core.EventArgs
|
||||
{
|
||||
public class VideoSearchSuccessedEventArgs : System.EventArgs
|
||||
{
|
||||
#region CONSTRUCTORS
|
||||
|
||||
public VideoSearchSuccessedEventArgs(IVideo video)
|
||||
{
|
||||
Video = video;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
#region PROPERTIES
|
||||
|
||||
public IVideo Video { get; set; }
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user