From 743c3aacd1e233431ff2e7aa135a8ddae98de1bf Mon Sep 17 00:00:00 2001 From: Elias Fierke Date: Mon, 17 Nov 2025 13:14:26 +0100 Subject: [PATCH] [chore:] added basic name-generation-function for address-sets --- DataStructures.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/DataStructures.cs b/DataStructures.cs index 7228577..d4d8b38 100644 --- a/DataStructures.cs +++ b/DataStructures.cs @@ -1,3 +1,4 @@ +using System; using System.Collections.Generic; namespace Logof_Client; @@ -34,6 +35,14 @@ public class KasAddressList //Address-Set this.owner_id = owner_id; } + public static string GenerateName(string basic_type, bool? is_rest = false) + { + if(is_rest == true) + return basic_type + " - " + DateTime.Now.ToShortDateString() + " - Rest"; + else + return basic_type + " - " + DateTime.Now.ToShortDateString(); + } + public void UpdateErrorList(List<(int, List, List)> errorList) { errors.Clear();