Removed frontend and moved out of sln into solely csproj style

This commit is contained in:
2018-03-06 16:22:21 -05:00
parent dc1937d2f8
commit a3e7b4f8f7
42 changed files with 1 additions and 11792 deletions

43
Models/Channel.cs Normal file
View File

@ -0,0 +1,43 @@
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; }
// 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; }
// Added to this manager.
[Required]
public DateTime AddedtoDB { get; set; }
//! Last time this channel was updated.
[Required]
public DateTime Refreshed { get; set; }
// Videos this channel has.
[Required]
public List<Video> Videos { get; set; }
// Tags attached to this channel by user.
[Required]
public string[] UserTags { get; set; }
}
}

47
Models/Video.cs Normal file
View File

@ -0,0 +1,47 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
namespace YTManager.Models {
public class Video {
// Uniquie ID for this media type
[Key]
public long PrimaryKey { 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 YoutubeID { get; set; }
// Thumbnail link
[Required]
public string ThumbnailURL { get; set; }
// Date video was uploaded to YT
[Required]
public DateTime AddedToYT { get; set; }
// Date added to database
[Required]
public DateTime AddedtoDB { get; set; }
// How long the video is
[Required]
public TimeSpan Duration { get; set; }
// What channel this video comes from.
[Required]
public Channel Channel { get; set; }
// Tag this video applies to.
[Required]
public string[] Tags { get; set; }
}
}