aboutsummaryrefslogtreecommitdiff
path: root/Classes
diff options
context:
space:
mode:
authorAryadev Chavali <aryadevchavali1@gmail.com>2019-02-04 11:36:48 +0000
committerAryadev Chavali <aryadevchavali1@gmail.com>2019-02-04 11:36:48 +0000
commitee874ec782f750cc6c2610818b8a276c21fed99e (patch)
tree05b0e03c5fff25b2715d433514cb54429a725af1 /Classes
parent95e75992bca29ee213627e86f58e60054e13bb13 (diff)
downloadnewsaggregator-ee874ec782f750cc6c2610818b8a276c21fed99e.tar.gz
newsaggregator-ee874ec782f750cc6c2610818b8a276c21fed99e.tar.bz2
newsaggregator-ee874ec782f750cc6c2610818b8a276c21fed99e.zip
Moved classes to general area because it isn't just used in the aggregator
Diffstat (limited to 'Classes')
-rw-r--r--Classes/Article.cs15
-rw-r--r--Classes/Classes.csproj7
-rw-r--r--Classes/Config.cs16
3 files changed, 38 insertions, 0 deletions
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 {
+ /// <summary>
+ /// Class to represent Articles in C#
+ /// </summary>
+ 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 @@
+<Project Sdk="Microsoft.NET.Sdk">
+
+ <PropertyGroup>
+ <TargetFramework>netcoreapp2.1</TargetFramework>
+ </PropertyGroup>
+
+</Project>
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 {
+ /// <summary>
+ /// Class to represent position for each piece of data in a class
+ /// To be used in conjunction with article for each source
+ /// </summary>
+ 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; }
+ }
+}