def __init__(self):

        self.response = Response(outgoing.NavigatorPreferencesComposer)
        self.response.write_int(50)
        self.response.write_int(50)
        self.response.write_int(580)
        self.response.write_int(600)
        self.response.write_bool_int(True)
        self.response.write_int(1)
    def __init__(self, categories, rank):

        self.response = Response(outgoing.FlatCategoriesMessageComposer)
        self.response.write_int(len(categories))

        for category in categories:
            self.response.write_int(category.id)
            self.response.write_string(category.name)
            self.response.write_bool(category.min_rank <= rank)
            self.response.write_bool(False)
            self.response.write_string("NONE")
            self.response.write_string("")
            self.response.write_bool(False)
Ejemplo n.º 3
0
 def __init__(self, virtual_id):
     self.response = Response(outgoing.UserLeftRoomMessageComposer)
     self.response.write_string(str(virtual_id))
 def __init__(self):
     self.response = Response(outgoing.AuthenticationOKMessageComposer)
 def __init__(self):
     self.response = Response(outgoing.HotelScreenMessageComposer)
Ejemplo n.º 6
0
 def __init__(self, message):
     self.response = Response(outgoing.MOTDMessageComposer)
     self.response.write_int(1)
     self.response.write_string(message)
 def __init__(self, space, data):
     self.response = Response(outgoing.RoomSpacesMessageComposer)
     self.response.write_string(space)
     self.response.write_string(data)
 def __init__(self):
     self.response = Response(outgoing.AvailabilityMessageComposer)
     self.response.write_bool(True)
     self.response.write_bool(False)
     self.response.write_bool(True)
 def __init__(self, room_id):
     self.response = Response(outgoing.RoomUpdateMessageComposer)
     self.response.write_int(room_id)