class HandoverResponse(Message): def __init__(self): self.type_code = MXP_MESSAGE_HANDOVER_RESPONSE self.response_header = ResponseFragment() def clear(self): self.response_header = ResponseFragment() super(HandoverResponse, self).clear() def frame_data_size(self, frame_index): result = 0 result += ResponseFragment.frame_data_size(frame_index) return result def serialize(self, writer): self.response_header.serialize(writer) def deserialize(self, reader): self.response_header.deserialize(reader) def __str__(self): return 'HandoverResponse(' + str(self.response_header) + ')' def __eq__(self, other): return (self.type_code == other.type_code) and \ (self.response_header == other.response_header) def __ne__(self, other): return (self.type_code != other.type_code) or \ (self.response_header != other.response_header)
def clear(self): self.response_header = ResponseFragment() self.bubble_id = UUID('{00000000-0000-0000-0000-000000000000}') self.participant_id = UUID('{00000000-0000-0000-0000-000000000000}') self.avatar_id = UUID('{00000000-0000-0000-0000-000000000000}') self.bubble_name = '' self.bubble_asset_cache_url = '' self.bubble_range = 0 self.bubble_perception_range = 0 self.bubble_realtime = 0 super(JoinResponse, self).clear()
def __init__(self): self.type_code = MXP_MESSAGE_JOIN_RESPONSE self.response_header = ResponseFragment() self.bubble_id = UUID('{00000000-0000-0000-0000-000000000000}') self.participant_id = UUID('{00000000-0000-0000-0000-000000000000}') self.avatar_id = UUID('{00000000-0000-0000-0000-000000000000}') self.max_bubble_name = 40 self.bubble_name = '' self.max_bubble_asset_cache_url = 50 self.bubble_asset_cache_url = '' self.bubble_range = 0 self.bubble_perception_range = 0 self.bubble_realtime = 0
class AttachResponse(Message): def __init__(self): self.type_code = MXP_MESSAGE_ATTACH_RESPONSE self.response_header = ResponseFragment() self.target_bubble = BubbleFragment() self.target_bubble_server = ProgramFragment() def clear(self): self.response_header = ResponseFragment() self.target_bubble = BubbleFragment() self.target_bubble_server = ProgramFragment() super(AttachResponse,self).clear() def frame_data_size(self, frame_index): result = 0 result += ResponseFragment.frame_data_size(frame_index) result += BubbleFragment.frame_data_size(frame_index) result += ProgramFragment.frame_data_size(frame_index) return result def serialize(self, writer): self.response_header.serialize(writer) self.target_bubble.serialize(writer) self.target_bubble_server.serialize(writer) def deserialize(self, reader): self.response_header.deserialize(reader) self.target_bubble.deserialize(reader) self.target_bubble_server.deserialize(reader) def __str__(self): return 'AttachResponse('+ str(self.response_header) \ + str(self.target_bubble) \ + str(self.target_bubble_server) +')' def __eq__(self,other): return (self.type_code == other.type_code) and \ (self.response_header == other.response_header) and \ (self.target_bubble == other.target_bubble) and \ (self.target_bubble_server == other.target_bubble_server) def __ne__(self,other): return (self.type_code != other.type_code) or \ (self.response_header != other.response_header) or \ (self.target_bubble != other.target_bubble) or \ (self.target_bubble_server != other.target_bubble_server)
def frame_data_size(self, frame_index): result = 0 result += ResponseFragment.frame_data_size(frame_index) result += 16 result += 16 result += 16 result += 8 result += 8 result += 8 return result
class InteractResponse(Message): def __init__(self): self.type_code = MXP_MESSAGE_INTERACT_RESPONSE self.response_header = ResponseFragment() self.response = InteractionFragment() def clear(self): self.response_header = ResponseFragment() self.response = InteractionFragment() super(InteractResponse, self).clear() def frame_data_size(self, frame_index): result = 0 result += ResponseFragment.frame_data_size(frame_index) result += InteractionFragment.frame_data_size(frame_index) return result def serialize(self, writer): self.response_header.serialize(writer) self.response.serialize(writer) def deserialize(self, reader): self.response_header.deserialize(reader) self.response.deserialize(reader) def __str__(self): return 'InteractResponse('+ str(self.response_header) \ + str(self.response) +')' def __eq__(self, other): return (self.type_code == other.type_code) and \ (self.response_header == other.response_header) and \ (self.response == other.response) def __ne__(self, other): return (self.type_code != other.type_code) or \ (self.response_header != other.response_header) or \ (self.response != other.response)
def clear(self): self.response_header = ResponseFragment() super(InjectResponse, self).clear()
def clear(self): self.response_header = ResponseFragment() super(DetachResponse, self).clear()
def __init__(self): self.type_code = MXP_MESSAGE_INTERACT_RESPONSE self.response_header = ResponseFragment() self.response = InteractionFragment()
def frame_data_size(self, frame_index): result = 0 result += ResponseFragment.frame_data_size(frame_index) result += BubbleFragment.frame_data_size(frame_index) result += ProgramFragment.frame_data_size(frame_index) return result
def clear(self): self.response_header = ResponseFragment() self.target_bubble = BubbleFragment() self.target_bubble_server = ProgramFragment() super(AttachResponse,self).clear()
def __init__(self): self.type_code = MXP_MESSAGE_ATTACH_RESPONSE self.response_header = ResponseFragment() self.target_bubble = BubbleFragment() self.target_bubble_server = ProgramFragment()
def clear(self): self.response_header = ResponseFragment() super(LeaveResponse, self).clear()
def frame_data_size(self, frame_index): result = 0 result += ResponseFragment.frame_data_size(frame_index) result += InteractionFragment.frame_data_size(frame_index) return result
def clear(self): self.response_header = ResponseFragment() self.response = InteractionFragment() super(InteractResponse, self).clear()
def __init__(self): self.type_code = MXP_MESSAGE_HANDOVER_RESPONSE self.response_header = ResponseFragment()
def clear(self): self.response_header = ResponseFragment() super(HandoverResponse, self).clear()
class JoinResponse(Message): def __init__(self): self.type_code = MXP_MESSAGE_JOIN_RESPONSE self.response_header = ResponseFragment() self.bubble_id = UUID('{00000000-0000-0000-0000-000000000000}') self.participant_id = UUID('{00000000-0000-0000-0000-000000000000}') self.avatar_id = UUID('{00000000-0000-0000-0000-000000000000}') self.max_bubble_name = 40 self.bubble_name = '' self.max_bubble_asset_cache_url = 50 self.bubble_asset_cache_url = '' self.bubble_range = 0 self.bubble_perception_range = 0 self.bubble_realtime = 0 def clear(self): self.response_header = ResponseFragment() self.bubble_id = UUID('{00000000-0000-0000-0000-000000000000}') self.participant_id = UUID('{00000000-0000-0000-0000-000000000000}') self.avatar_id = UUID('{00000000-0000-0000-0000-000000000000}') self.bubble_name = '' self.bubble_asset_cache_url = '' self.bubble_range = 0 self.bubble_perception_range = 0 self.bubble_realtime = 0 super(JoinResponse, self).clear() def frame_data_size(self, frame_index): result = 0 result += ResponseFragment.frame_data_size(frame_index) result += 16 result += 16 result += 16 result += 8 result += 8 result += 8 return result def serialize(self, writer): self.response_header.serialize(writer) writer.write(self.bubble_id, 'uuid') writer.write(self.participant_id, 'uuid') writer.write(self.avatar_id, 'uuid') writer.writeRange(self.bubble_name, self.max_bubble_name, 'chr') writer.writeRange(self.bubble_asset_cache_url, self.max_bubble_asset_cache_url, 'chr') writer.write(self.bubble_range, 'float') writer.write(self.bubble_perception_range, 'float') writer.write(self.bubble_realtime, 'time') def deserialize(self, reader): self.response_header.deserialize(reader) (self.bubble_id, c) = reader.read('uuid') (self.participant_id, c) = reader.read('uuid') (self.avatar_id, c) = reader.read('uuid') (self.bubble_name, c) = reader.readRange(self.max_bubble_name, 'chr', 1) (self.bubble_asset_cache_url, c) = reader.readRange(self.max_bubble_asset_cache_url, 'chr', 1) (self.bubble_range, c) = reader.read('float') (self.bubble_perception_range, c) = reader.read('float') (self.bubble_realtime, c) = reader.read('time') def __str__(self): return 'JoinResponse('+ str(self.response_header) \ + str(self.bubble_id) \ + str(self.participant_id) \ + str(self.avatar_id) \ + self.bubble_name \ + self.bubble_asset_cache_url \ + str(self.bubble_range) \ + str(self.bubble_perception_range) \ + str(self.bubble_realtime) +')' def __eq__(self, other): return (self.type_code == other.type_code) and \ (self.response_header == other.response_header) and \ (self.bubble_id == other.bubble_id) and \ (self.participant_id == other.participant_id) and \ (self.avatar_id == other.avatar_id) and \ (self.bubble_name == other.bubble_name) and \ (self.bubble_asset_cache_url == other.bubble_asset_cache_url) and \ (self.bubble_range == other.bubble_range) and \ (self.bubble_perception_range == other.bubble_perception_range) and \ (self.bubble_realtime == other.bubble_realtime) def __ne__(self, other): return (self.type_code != other.type_code) or \ (self.response_header != other.response_header) or \ (self.bubble_id != other.bubble_id) or \ (self.participant_id != other.participant_id) or \ (self.avatar_id != other.avatar_id) or \ (self.bubble_name != other.bubble_name) or \ (self.bubble_asset_cache_url != other.bubble_asset_cache_url) or \ (self.bubble_range != other.bubble_range) or \ (self.bubble_perception_range != other.bubble_perception_range) or \ (self.bubble_realtime != other.bubble_realtime)