From 287d0c6ceb4fcc0a45564ed00b99f3c008e7f35d Mon Sep 17 00:00:00 2001 From: "Tristan B. Kildaire" Date: Tue, 20 Oct 2020 08:23:47 +0200 Subject: [PATCH] Implemented all property functions. --- source/dnetd/dconnection.d | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source/dnetd/dconnection.d b/source/dnetd/dconnection.d index 19f171d..e63e67a 100644 --- a/source/dnetd/dconnection.d +++ b/source/dnetd/dconnection.d @@ -810,7 +810,7 @@ public class DConnection : Thread public string getProperty(string propertyName) { /* TODO: Error handling */ - return ""; + return properties[propertyName]; } /** @@ -818,7 +818,7 @@ public class DConnection : Thread */ public string[] getProperties() { - return []; + return properties.keys(); } /** @@ -827,6 +827,7 @@ public class DConnection : Thread public void deleteProperty(string propertyName) { /* TODO: Implement me */ + properties.remove(propertyName); } public ConnectionType getConnectionType()