From 3e25c70e37d560ab667550b906bf737241653a31 Mon Sep 17 00:00:00 2001 From: "Tristan B. Velloza Kildaire" Date: Thu, 9 Mar 2023 11:16:53 +0200 Subject: [PATCH] Receiver - Added a constructor for `ReceiverThread` Sender - Added a constructor for `SenderThread` --- source/birchwood/client/receiver.d | 12 ++++++++++++ source/birchwood/client/sender.d | 12 ++++++++++++ 2 files changed, 24 insertions(+) diff --git a/source/birchwood/client/receiver.d b/source/birchwood/client/receiver.d index 71cb327..9363ba5 100644 --- a/source/birchwood/client/receiver.d +++ b/source/birchwood/client/receiver.d @@ -30,4 +30,16 @@ public final class ReceiverThread : Thread * The associated IRC client */ private Client client; + + /** + * Constructs a new receiver thread with the associated + * client + * + * Params: + * client = the Client to associate with + */ + this(Client client) + { + this.client = client; + } } \ No newline at end of file diff --git a/source/birchwood/client/sender.d b/source/birchwood/client/sender.d index 98ada33..0bd1423 100644 --- a/source/birchwood/client/sender.d +++ b/source/birchwood/client/sender.d @@ -30,4 +30,16 @@ public final class SenderThread : Thread * The associated IRC client */ private Client client; + + /** + * Constructs a new sender thread with the associated + * client + * + * Params: + * client = the Client to associate with + */ + this(Client client) + { + this.client = client; + } } \ No newline at end of file