From b604e6c24deab6fff78bf2362de7f7dbee872a10 Mon Sep 17 00:00:00 2001 From: sTiKyt Date: Thu, 13 Aug 2020 22:58:17 +0300 Subject: [PATCH] Created connection_model.py --- models/connection_model.py | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 models/connection_model.py diff --git a/models/connection_model.py b/models/connection_model.py new file mode 100644 index 0000000..5fc37c6 --- /dev/null +++ b/models/connection_model.py @@ -0,0 +1,24 @@ +class ConnectionModel: + def __init__(self, timeout: float = 16, host: str = "https://google.com"): + self._host = host + self._timeout = timeout + + @property + def host(self): + # TODO add verbose output + return self._host + + @host.setter + def host(self, new_host: str): + # TODO add verbose output + self._host = new_host + + @property + def timeout(self): + # TODO add verbose output + return self._timeout + + @timeout.setter + def timeout(self, new_timeout): + # TODO add verbose output + self._timeout = new_timeout \ No newline at end of file