From ee874ec782f750cc6c2610818b8a276c21fed99e Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Mon, 4 Feb 2019 11:36:48 +0000 Subject: Moved classes to general area because it isn't just used in the aggregator --- Classes/Article.cs | 15 +++++++++++++++ Classes/Classes.csproj | 7 +++++++ Classes/Config.cs | 16 ++++++++++++++++ 3 files changed, 38 insertions(+) create mode 100644 Classes/Article.cs create mode 100644 Classes/Classes.csproj create mode 100644 Classes/Config.cs (limited to 'Classes') diff --git a/Classes/Article.cs b/Classes/Article.cs new file mode 100644 index 0000000..1b91696 --- /dev/null +++ b/Classes/Article.cs @@ -0,0 +1,15 @@ +using System; + +namespace Aggregator.Classes { + /// + /// Class to represent Articles in C# + /// + public class Article { + public string Title { get; set; } + public string Description { get; set; } + public string ImageLink { get; set; } + public string ArticleLink { get; set; } + public string Source { get; set; } + public DateTime PublishDate { get; set; } + } +} diff --git a/Classes/Classes.csproj b/Classes/Classes.csproj new file mode 100644 index 0000000..86ea3bb --- /dev/null +++ b/Classes/Classes.csproj @@ -0,0 +1,7 @@ + + + + netcoreapp2.1 + + + diff --git a/Classes/Config.cs b/Classes/Config.cs new file mode 100644 index 0000000..f7a94d1 --- /dev/null +++ b/Classes/Config.cs @@ -0,0 +1,16 @@ +using System; + +namespace Aggregator.Classes { + /// + /// Class to represent position for each piece of data in a class + /// To be used in conjunction with article for each source + /// + public class Config { + public string Source { get; set; } + public int Title { get; set; } + public int Description { get; set; } + public int ImageLink { get; set; } + public int ArticleLink { get; set; } + public int PublishDate { get; set; } + } +} -- cgit v1.2.3-13-gbd6f