def __init__(self, commands, index, previous_record): self.index = index self.request_type = RECORD_REQUEST if previous_record: command = commands[0] hard_key = previous_record soft_key = index else: hard_key = index soft_key = "" command = commands[1] SowaRequest.__init__(self, command, 21, 15, 5, hard_key, b"\x00", soft_key, b"\x00")
def __init__(self, rec_id, report_id): self.request_type = REPORT_REQUEST SowaRequest.__init__(self, 100, "\x02", report_id, rec_id, "\x00")