voipms-python/voipms/api/accounts/__init__.py

23 lines
644 B
Python
Raw Normal View History

from voipms.api.accounts.subaccount import Subaccount
from voipms.api.accounts.registration_status import RegistrationStatus
2020-03-17 02:58:09 +00:00
class Accounts():
def __init__(self, base):
self._subaccount = None
self._registration_status = None
self.base = base
@property
def subaccount(self):
if self._subaccount is None:
self._subaccount = Subaccount(self.base)
return self._subaccount
@property
def registration_status(self):
if self._registration_status is None:
self._registration_status = RegistrationStatus(self.base)
2020-03-17 02:58:09 +00:00
return self._registration_status