def __init__(self): Message.__init__(self) self.request_id_comp = IntComp() self.reason_comp = StringComp() self.add_component(self.request_id_comp) self.add_component(self.reason_comp)
def __init__(self): Message.__init__(self) self.request_id_comp = IntComp() self.version_comp = IntComp() self.agent_name_comp = StringComp() self.requested_entities_comp = StringListComp() self.add_component(self.request_id_comp) self.add_component(self.version_comp) self.add_component(self.agent_name_comp) self.add_component(self.requested_entities_comp)
class KAConnectError(Message): urn = 'urn:rescuecore2:messages.control:ka_connect_error' def __init__(self): Message.__init__(self) self.request_id_comp = IntComp() self.reason_comp = StringComp() self.add_component(self.request_id_comp) self.add_component(self.reason_comp) def set_message(self, request_id, reason): self.request_id_comp.set_value(request_id) self.reason_comp.set_value(reason)
class AKConnect(Message): urn = 'urn:rescuecore2:messages.control:ak_connect' def __init__(self): Message.__init__(self) self.request_id_comp = IntComp() self.version_comp = IntComp() self.agent_name_comp = StringComp() self.requested_entities_comp = StringListComp() self.add_component(self.request_id_comp) self.add_component(self.version_comp) self.add_component(self.agent_name_comp) self.add_component(self.requested_entities_comp) def set_message(self, request_id, version, agent_name, requested_entity_types): self.request_id_comp.set_value(request_id) self.version_comp.set_value(version) self.agent_name_comp.set_value(agent_name) self.requested_entities_comp.set_value(requested_entity_types)