2019-08-19 02:30:31 +00:00
|
|
|
from voipms.api.accounts.subaccount import Subaccount
|
|
|
|
from voipms.api.accounts.registration_status import RegistrationStatus
|
|
|
|
|
2020-03-17 02:58:09 +00:00
|
|
|
|
2019-08-19 02:30:31 +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
|