Video adding and subscriptions finished

This commit is contained in:
2022-05-11 20:50:50 +02:00
Unverified
parent 7a57fb65f3
commit 7acaeb24de
92 changed files with 3917 additions and 3314 deletions

View File

@@ -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
}
}

View File

@@ -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; }
}
}

View File

@@ -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; }
}
}

View File

@@ -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; }
}
}

View 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
}
}

View 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
}
}