diff --git a/yaboli/utils.py b/yaboli/utils.py index ffdeea2..ba45af7 100644 --- a/yaboli/utils.py +++ b/yaboli/utils.py @@ -10,7 +10,7 @@ __all__ = [ "parallel", "asyncify", "mention", "normalize", "similar", "format_time", "format_time_delta", - "Session", "Listing", "Message", + "Session", "PersonalAccountView", "Listing", "Message", ] @@ -114,6 +114,20 @@ class Session: # account, agent or bot return self.user_id.split(":")[0] +class PersonalAccountView: + def __init__(self, account_id, name, email): + self.account_id = account_id + self.name = name + self.email = email + + @property + def aid(self): + return self.account_id + + @aid.setter + def aid(self, new_aid): + self.account_id = new_aid + class Listing: def __init__(self): self._sessions = {}