BackEnd/Models/Channel.cs

44 lines
1.1 KiB
C#
Raw Permalink Normal View History

2017-09-01 08:55:02 +00:00
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
namespace YTManager.Models {
public class Channel {
// Uniquie ID for this media type
[Key]
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; }
// Thumbnail link
[Required]
public string ThumbnailURL { get; set; }
// Youtube Channel ID
[Required]
public string YoutubeID { get; set; }
2017-09-01 08:55:02 +00:00
2018-02-18 01:29:25 +00:00
// Added to this manager.
[Required]
public DateTime AddedtoDB { get; set; }
2018-02-20 06:16:30 +00:00
//! Last time this channel was updated.
[Required]
public DateTime Refreshed { get; set; }
2017-09-01 08:55:02 +00:00
// Videos this channel has.
[Required]
2017-09-01 08:55:02 +00:00
public List<Video> Videos { get; set; }
// Tags attached to this channel by user.
[Required]
public string[] UserTags { get; set; }
2017-09-01 08:55:02 +00:00
}
}