class Transmit(Operation): def __init__(self, name, context, **params): Operation.__init__(self, name, context, **params) self.apdu = APDU(params['apdu']) self.protocol = params['dwProtocol'] def performed(self, hresult, **params): Operation.performed(self, hresult, **params) self.apdu.received(params['response'])
def __init__(self, name, context, **params): Operation.__init__(self, name, context, **params) self.apdu = APDU(params['apdu']) self.protocol = params['dwProtocol']