Video adding and subscriptions finished
This commit is contained in:
@@ -9,8 +9,20 @@ namespace VDownload.Core.Structs
|
||||
[Serializable]
|
||||
public struct BaseStream
|
||||
{
|
||||
#region PROPERTIES
|
||||
|
||||
public Uri Url { get; set; }
|
||||
public int Height { get; set; }
|
||||
public int FrameRate { get; set; }
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
#region METHODS
|
||||
|
||||
public override string ToString() => $"{Height}p{(FrameRate > 0 ? FrameRate.ToString() : "N/A")}";
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace VDownload.Core.Structs
|
||||
{
|
||||
[Serializable]
|
||||
public struct Metadata
|
||||
{
|
||||
public string Title { get; set; }
|
||||
public string Author { get; set; }
|
||||
public DateTime Date { get; set; }
|
||||
public TimeSpan Duration { get; set; }
|
||||
public long Views { get; set; }
|
||||
public Uri Thumbnail { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,13 +0,0 @@
|
||||
using System;
|
||||
using VDownload.Core.Enums;
|
||||
using VDownload.Core.Interfaces;
|
||||
using Windows.Storage;
|
||||
|
||||
namespace VDownload.Core.Structs
|
||||
{
|
||||
public struct TaskData
|
||||
{
|
||||
public IVideo VideoService { get; set; }
|
||||
public TaskOptions TaskOptions { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,18 +0,0 @@
|
||||
using System;
|
||||
using VDownload.Core.Enums;
|
||||
using Windows.Storage;
|
||||
|
||||
namespace VDownload.Core.Structs
|
||||
{
|
||||
public struct TaskOptions
|
||||
{
|
||||
public MediaType MediaType { get; set; }
|
||||
public BaseStream Stream { get; set; }
|
||||
public TimeSpan TrimStart { get; set; }
|
||||
public TimeSpan TrimEnd { get; set; }
|
||||
public string Filename { get; set; }
|
||||
public MediaFileExtension Extension { get; set; }
|
||||
public StorageFolder Location { get; set; }
|
||||
public double Schedule { get; set; }
|
||||
}
|
||||
}
|
||||
18
VDownload.Core/Structs/TrimData.cs
Normal file
18
VDownload.Core/Structs/TrimData.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace VDownload.Core.Structs
|
||||
{
|
||||
public struct TrimData
|
||||
{
|
||||
#region PROPERTIES
|
||||
|
||||
public TimeSpan Start { get; set; }
|
||||
public TimeSpan End { get; set; }
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
32
VDownload.Core/Structs/TwitchAccessTokenValidationData.cs
Normal file
32
VDownload.Core/Structs/TwitchAccessTokenValidationData.cs
Normal file
@@ -0,0 +1,32 @@
|
||||
using System;
|
||||
|
||||
namespace VDownload.Core.Structs
|
||||
{
|
||||
public struct TwitchAccessTokenValidationData
|
||||
{
|
||||
#region CONSTRUCTORS
|
||||
|
||||
public TwitchAccessTokenValidationData(string accessToken, bool isValid, string login, DateTime? expirationDate)
|
||||
{
|
||||
AccessToken = accessToken;
|
||||
IsValid = isValid;
|
||||
Login = login;
|
||||
ExpirationDate = expirationDate;
|
||||
}
|
||||
|
||||
public static TwitchAccessTokenValidationData Null = new TwitchAccessTokenValidationData(string.Empty, false, string.Empty, null);
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
#region PROPERTIES
|
||||
|
||||
public string AccessToken { get; private set; }
|
||||
public bool IsValid { get; private set; }
|
||||
public string Login { get; private set; }
|
||||
public DateTime? ExpirationDate { get; private set; }
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user