Add project files.

This commit is contained in:
2017-09-01 04:55:02 -04:00
parent 70d055282c
commit ae782025f6
22 changed files with 1244 additions and 0 deletions

View File

@ -0,0 +1,32 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations;
namespace YTManager.Models {
public class Channel {
// Uniquie ID for this media type
[Key]
public long ChannelId { get; set; }
// 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 YTChannelID { get; set; }
// Videos this channel has.
public List<Video> Videos { get; set; }
}
}

41
YTManager/Models/Video.cs Normal file
View File

@ -0,0 +1,41 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations;
namespace YTManager.Models {
public class Video {
// Uniquie ID for this media type
[Key]
public long VideoId { get; set; }
// 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]
public string YTVideoID { get; set; }
// Thumbnail link
[Required]
public string ThumbnailURL { get; set; }
// Date video was uploaded to YT
[Required]
public DateTime Uploaded { 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; }
}
}