From d27964372dae9a1c98ca54a3b6f79bda7bb56b34 Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Wed, 1 Dec 2021 20:30:27 +0100 Subject: [PATCH] Added getter --- src/gismo_data/model/client.py | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/src/gismo_data/model/client.py b/src/gismo_data/model/client.py index ca56e9f..4023f82 100644 --- a/src/gismo_data/model/client.py +++ b/src/gismo_data/model/client.py @@ -31,6 +31,38 @@ class Client(TableABC): self._created_at = created_at if created_at is not None else self._created_at self._modified_at = modified_at if modified_at is not None else self._modified_at + @property + def client_id(self) -> int: + return self._client_id + + @property + def discord_id(self) -> int: + return self._discord_id + + @property + def sent_message_count(self) -> int: + return self._sent_message_count + + @property + def received_message_count(self) -> int: + return self._received_message_count + + @property + def deleted_message_count(self) -> int: + return self._deleted_message_count + + @property + def received_command_count(self) -> int: + return self._received_command_count + + @property + def moved_users_count(self) -> int: + return self._moved_users_count + + @property + def server(self) -> Server: + return self._server + @staticmethod def get_create_string() -> str: return str(f"""