From dd0e015d1e76bb490cdc97ce9e0de62723d316f2 Mon Sep 17 00:00:00 2001 From: nek0 Date: Thu, 23 Apr 2020 14:47:50 +0200 Subject: [PATCH] build more --- Administration.cs | 8 ++++++++ Catalogue.cs | 19 +++++++++++++++++++ Inventory.cs | 23 +++++++++++++++++++++++ Lend_Administration.cs | 24 ++++++++++++++++++++++++ 4 files changed, 74 insertions(+) create mode 100644 Catalogue.cs create mode 100644 Inventory.cs create mode 100644 Lend_Administration.cs diff --git a/Administration.cs b/Administration.cs index d261b12..8c5275a 100644 --- a/Administration.cs +++ b/Administration.cs @@ -2,9 +2,17 @@ namespace Bücherwurm { class Administration { + private Catalogue Books {get; set;} + + private Inventory Inventory {get; set;} + + private Lend_Administration Lendings {get; set;} public Administration() { + Books = new Catalogue(); + Inventory = new Inventory(); + Lendings = new Lend_Administration(); } } } \ No newline at end of file diff --git a/Catalogue.cs b/Catalogue.cs new file mode 100644 index 0000000..0ac8746 --- /dev/null +++ b/Catalogue.cs @@ -0,0 +1,19 @@ +using System.Collections.Generic; + +namespace Bücherwurm +{ + class Catalogue + { + private List Books {get; set;} + + public Catalogue() + { + Books = new List(); + } + + public void Import(string JsonString) + { + //TODO: implement! + } + } +} \ No newline at end of file diff --git a/Inventory.cs b/Inventory.cs new file mode 100644 index 0000000..51d16b0 --- /dev/null +++ b/Inventory.cs @@ -0,0 +1,23 @@ +using System.Collections.Generic; + +namespace Bücherwurm +{ + class Inventory + { + private List InventoryList {get; set;} + + public Inventory(){ + InventoryList = new List(); + } + + public void Add(Book Book) + { + //TODO: implement! + } + + public void Remove(int Id) + { + //TODO: implement! + } + } +} \ No newline at end of file diff --git a/Lend_Administration.cs b/Lend_Administration.cs new file mode 100644 index 0000000..c4c4868 --- /dev/null +++ b/Lend_Administration.cs @@ -0,0 +1,24 @@ +using System.Collections.Generic; + +namespace Bücherwurm +{ + class Lend_Administration + { + private List Lendings {get; set;} + + public Lend_Administration() + { + Lendings = new List(); + } + + public void Lend(int[] ItemsIds, string Customer) + { + //TODO: implement! + } + + public void Return(int LendID) + { + //TODO: implement! + } + } +} \ No newline at end of file