37 lines
1.0 KiB
Python
37 lines
1.0 KiB
Python
from voipms.api.general.balance import Balance
|
|
from voipms.api.general.ip import IP
|
|
from voipms.api.general.transaction_history import TransactionHistory
|
|
from voipms.api.general.countries import Countries
|
|
|
|
class General():
|
|
def __init__(self, base):
|
|
self._balance = None
|
|
self._ip = None
|
|
self._transaction_history = None
|
|
self._countries = None
|
|
|
|
self.base = base
|
|
|
|
@property
|
|
def balance(self):
|
|
if self._balance is None:
|
|
self._balance = Balance(self.base)
|
|
return self._balance
|
|
|
|
@property
|
|
def ip(self):
|
|
if self._ip is None:
|
|
self._ip = IP(self.base)
|
|
return self._ip
|
|
|
|
@property
|
|
def transaction_history(self):
|
|
if self._transaction_history is None:
|
|
self._transaction_history = TransactionHistory(self.base)
|
|
return self._transaction_history
|
|
|
|
@property
|
|
def countries(self):
|
|
if self._countries is None:
|
|
self._countries = Countries(self.base)
|
|
return self._countries |