def __init__(self, mid, granted_qos):
    BaseEvent.__init__(self, NC.CMD_SUBACK)
    self.mid = mid
    self.granted_qos = granted_qos
def __init__(self, mid, granted_qos):
    BaseEvent.__init__(self, NC.CMD_SUBACK)
    self.mid = mid
    self.granted_qos = granted_qos