new_version_init

This commit is contained in:
2024-02-13 02:59:40 +01:00
Unverified
parent e36c1404ee
commit 91f9b645bd
352 changed files with 6777 additions and 8326 deletions

58
VDownload.Common/Video.cs Normal file
View File

@@ -0,0 +1,58 @@
using CommunityToolkit.Mvvm.ComponentModel;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace VDownload.Common.Models
{
public abstract partial class Video : ObservableObject
{
#region PROPERTIES
[ObservableProperty]
protected string _title;
[ObservableProperty]
protected string _description;
[ObservableProperty]
protected string _author;
[ObservableProperty]
protected DateTime _publishDate;
[ObservableProperty]
protected TimeSpan _duration;
[ObservableProperty]
protected int _viewCount;
[ObservableProperty]
protected string? _thumbnailUrl;
[ObservableProperty]
protected ObservableCollection<VideoStream> _streams;
[ObservableProperty]
protected string _url;
[ObservableProperty]
protected Source _source;
#endregion
#region CONSTRUCTORS
protected Video()
{
_streams = new ObservableCollection<VideoStream>();
}
#endregion
}
}