From 0494a0fd744e365de032d08aa0734e63ddccf1ad Mon Sep 17 00:00:00 2001 From: "Tristan B. Velloza Kildaire" Date: Fri, 22 Sep 2023 17:43:13 +0200 Subject: [PATCH] CoapMessagingLayerFR - Added missing imports - Added `getClient()` method - Removed the super constructor call --- source/doap/client/mesglayer.d | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/source/doap/client/mesglayer.d b/source/doap/client/mesglayer.d index 8162312..3ded49e 100644 --- a/source/doap/client/mesglayer.d +++ b/source/doap/client/mesglayer.d @@ -1,6 +1,34 @@ module doap.client.mesglayer; +import doap.client.client : CoapClient; + public abstract class CoapMessagingLayerFR { - + /** + * The client + */ + private CoapClient client; + + /** + * Constructs a new messaging layer instance + * associated with the provided client + * + * Params: + * client = the client + */ + this(CoapClient client) + { + this.client = client; + } + + /** + * Retrieves the client associated with + * this messaging layer + * + * Returns: the `CoapClient` + */ + public final CoapClient getClient() + { + return this.client; + } } \ No newline at end of file