diff --git a/VDownload.Common/AudioExtension.cs b/VDownload.Common/AudioExtension.cs new file mode 100644 index 0000000..f0ef465 --- /dev/null +++ b/VDownload.Common/AudioExtension.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace VDownload.Common +{ + public enum AudioExtension + { + MP3 + } +} diff --git a/VDownload.Common/Exceptions/MediaSearchException.cs b/VDownload.Common/Exceptions/MediaSearchException.cs new file mode 100644 index 0000000..01debc3 --- /dev/null +++ b/VDownload.Common/Exceptions/MediaSearchException.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace VDownload.Common.Exceptions +{ + public class MediaSearchException : Exception + { + #region CONSTRUCTORS + + public MediaSearchException() : base() { } + + public MediaSearchException(string message) : base(message) { } + + public MediaSearchException(string message, Exception inner) : base(message, inner) { } + + #endregion + } +} diff --git a/VDownload.Common/MediaType.cs b/VDownload.Common/MediaType.cs new file mode 100644 index 0000000..48c6a6f --- /dev/null +++ b/VDownload.Common/MediaType.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace VDownload.Common +{ + public enum MediaType + { + [Description("Original")] + Original, + + [Description("Only video")] + OnlyVideo, + + [Description("Only audio")] + OnlyAudio, + } +} diff --git a/VDownload.Common/Playlist.cs b/VDownload.Common/Playlist.cs new file mode 100644 index 0000000..203be1d --- /dev/null +++ b/VDownload.Common/Playlist.cs @@ -0,0 +1,24 @@ +using CommunityToolkit.Mvvm.ComponentModel; +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using VDownload.Common.Models; + +namespace VDownload.Common +{ + public abstract class Playlist : ObservableObject, IEnumerable