diff options
Diffstat (limited to 'Classes')
-rw-r--r-- | Classes/Article.cs | 15 | ||||
-rw-r--r-- | Classes/Classes.csproj | 7 | ||||
-rw-r--r-- | Classes/Config.cs | 16 |
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; } + } +} |