From 17c81bd1b009fc3fcc63dea70c3ac85d5a1e40ad Mon Sep 17 00:00:00 2001 From: "Tristan B. Velloza Kildaire" Date: Sat, 18 Mar 2023 11:45:38 +0200 Subject: [PATCH] Client - Store all learnt key-value pairs into `string[string] attrs` for now --- source/birchwood/client/client.d | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/source/birchwood/client/client.d b/source/birchwood/client/client.d index ddb3271..eda9dcd 100644 --- a/source/birchwood/client/client.d +++ b/source/birchwood/client/client.d @@ -163,13 +163,29 @@ public class Client : Thread writeln("Support stuff: ", commandReply.getKVPairs()); - + testing(commandReply.getKVPairs()); } } + private string[string] attrs; + private void testing(string[string] newData) + { + foreach(string key; newData.keys()) + { + attrs[key] = newData[key]; + } + + foreach(string key; attrs.keys()) + { + logger.debug_("Attribute name:", key); + logger.debug_("Attribute value:", attrs[key]); + } + } + + /** * Joins the requested channel *