From d58df2a5f7955a7c3ba8556394ab16e30c1125ce Mon Sep 17 00:00:00 2001 From: nek0 Date: Tue, 28 Apr 2020 11:04:54 +0200 Subject: [PATCH] start implementation of magazine --- Magazine.cs | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Magazine.cs diff --git a/Magazine.cs b/Magazine.cs new file mode 100644 index 0000000..5500b16 --- /dev/null +++ b/Magazine.cs @@ -0,0 +1,21 @@ +namespace Bücherwurm +{ + public class Magazine : IProduct + { + public int ProductId {get; set;} + + public string ImageLink {get; set;} + + public string Category {get; set;} + + public int LendTime {get; set;} + + public void OverwriteNullId(int Id) + { + if (ProductId == 0) + { + ProductId = Id; + } + } + } +} \ No newline at end of file