mitel_ommclient2/mitel_ommclient2/messages/getaccount.py

28 lines
573 B
Python
Raw Normal View History

2022-01-06 18:13:48 +01:00
#!/usr/bin/env python3
from . import Request, Response
class GetAccount(Request):
def __init__(self, id, maxRecords=None, **kwargs):
super().__init__("GetAccount", **kwargs)
self.attrs["id"] = id
if maxRecords is not None:
self.attrs["maxRecords"] = maxRecords
@property
def id(self):
return self.attrs.get("id")
@property
def maxRecords(self):
return self.attrs.get("maxRecords")
class GetAccountResp(Response):
@property
def account(self):
2022-01-06 23:58:59 +01:00
return self.childs.get("account")