Renaming and formatting
This commit is contained in:
@ -8,7 +8,7 @@ namespace YTManager.Models {
|
||||
public class Channel {
|
||||
// Uniquie ID for this media type
|
||||
[Key]
|
||||
public long ChannelId { get; set; }
|
||||
public long key { get; set; }
|
||||
|
||||
// Title of the media
|
||||
[Required]
|
||||
@ -26,6 +26,10 @@ namespace YTManager.Models {
|
||||
[Required]
|
||||
public string YTChannelID { get; set; }
|
||||
|
||||
// Added to this manager.
|
||||
[Required]
|
||||
public DateTime AddedtoDB { get; set; }
|
||||
|
||||
// Videos this channel has.
|
||||
public List<Video> Videos { get; set; }
|
||||
}
|
||||
|
@ -8,7 +8,7 @@ namespace YTManager.Models {
|
||||
public class Video {
|
||||
// Uniquie ID for this media type
|
||||
[Key]
|
||||
public long VideoId { get; set; }
|
||||
public long key { get; set; }
|
||||
|
||||
// Title of the media
|
||||
[Required]
|
||||
@ -22,24 +22,20 @@ namespace YTManager.Models {
|
||||
[Required]
|
||||
public string YTVideoID { get; set; }
|
||||
|
||||
// Channel this video belongs to.
|
||||
[Required]
|
||||
public string YTChannelID { get; set; }
|
||||
|
||||
// Thumbnail link
|
||||
[Required]
|
||||
public string ThumbnailURL { get; set; }
|
||||
|
||||
// Date video was uploaded to YT
|
||||
[Required]
|
||||
public DateTime Uploaded { get; set; }
|
||||
public DateTime AddedToYT { get; set; }
|
||||
|
||||
// Date added to database
|
||||
[Required]
|
||||
public DateTime AddedtoDB { get; set; }
|
||||
|
||||
// Refer back to what channel this video belongs to.
|
||||
public long ChannelId { get; set; }
|
||||
public Channel Channel { get; set; }
|
||||
// Channel this video comes from.
|
||||
[Required]
|
||||
public Channel channel;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user