2017-09-01 08:55:02 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
|
|
|
|
|
namespace YTManager.Models {
|
|
|
|
|
public class Video {
|
|
|
|
|
// Uniquie ID for this media type
|
|
|
|
|
[Key]
|
2018-02-20 04:57:14 +00:00
|
|
|
|
public long PrimaryKey { get; set; }
|
2017-09-01 08:55:02 +00:00
|
|
|
|
|
|
|
|
|
// Title of the media
|
|
|
|
|
[Required]
|
|
|
|
|
public string Title { get; set; }
|
|
|
|
|
|
|
|
|
|
// Short description of the media
|
|
|
|
|
[Required]
|
|
|
|
|
public string Description { get; set; }
|
|
|
|
|
|
|
|
|
|
// Youtube Video ID
|
|
|
|
|
[Required]
|
2018-02-20 04:57:14 +00:00
|
|
|
|
public string YoutubeID { get; set; }
|
2017-09-01 08:55:02 +00:00
|
|
|
|
|
|
|
|
|
// Thumbnail link
|
|
|
|
|
[Required]
|
|
|
|
|
public string ThumbnailURL { get; set; }
|
|
|
|
|
|
|
|
|
|
// Date video was uploaded to YT
|
|
|
|
|
[Required]
|
2018-02-18 01:29:25 +00:00
|
|
|
|
public DateTime AddedToYT { get; set; }
|
2017-09-01 08:55:02 +00:00
|
|
|
|
|
|
|
|
|
// Date added to database
|
|
|
|
|
[Required]
|
|
|
|
|
public DateTime AddedtoDB { get; set; }
|
|
|
|
|
|
2018-02-28 23:33:40 +00:00
|
|
|
|
// How long the video is
|
|
|
|
|
[Required]
|
|
|
|
|
public TimeSpan Duration { get; set; }
|
|
|
|
|
|
2018-02-24 04:03:27 +00:00
|
|
|
|
// What channel this video comes from.
|
|
|
|
|
[Required]
|
2018-02-24 06:10:12 +00:00
|
|
|
|
public Channel Channel { get; set; }
|
2018-02-24 04:03:27 +00:00
|
|
|
|
|
2018-02-20 04:57:14 +00:00
|
|
|
|
// Tag this video applies to.
|
2018-02-18 01:29:25 +00:00
|
|
|
|
[Required]
|
2018-02-24 06:10:12 +00:00
|
|
|
|
public List<Tag> Tags { get; set; }
|
2017-09-01 08:55:02 +00:00
|
|
|
|
}
|
|
|
|
|
}
|