From 62b86b9557dd7bc558a8d7198d9aa932bdfac0db Mon Sep 17 00:00:00 2001 From: Simon Gockner Date: Mon, 27 Jan 2020 11:46:35 +0100 Subject: [PATCH] - add first implementation of GBaseTable --- GBase/GBaseTable.cs | 61 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 GBase/GBaseTable.cs diff --git a/GBase/GBaseTable.cs b/GBase/GBaseTable.cs new file mode 100644 index 0000000..b0c347c --- /dev/null +++ b/GBase/GBaseTable.cs @@ -0,0 +1,61 @@ +// Author: Gockner, Simon +// Created: 2020-01-27 +// Copyright(c) 2020 SimonG. All Rights Reserved. + +using System; +using System.Collections.Generic; +using System.Threading; +using System.Threading.Tasks; +using GBase.Interfaces; + +namespace GBase +{ + /// + /// A table + /// + public class GBaseTable : IGBaseTable + { + /// + /// A table + /// + public GBaseTable() + { + Entries = new List(); + } + + /// + /// The name of this + /// + public string Name { get; private set; } + + /// + /// The s of this + /// + public List Entries { get; } + + + /// + /// Initialize this + /// + /// The name of this + /// A to cancel the asynchronous operation + /// True if successful, false if not + public async Task Init(string name, CancellationToken cancellationToken) + { + Name = name; + + //TODO: Init Entries list depending on GBaseEntryAttributes set for this GBaseTable + + return true; + } + + /// + /// The method + /// + /// A to await + public async ValueTask DisposeAsync() + { + throw new System.NotImplementedException(); + } + } +} \ No newline at end of file