def __init__(self, request_id, client, username, flag): ServerMessage.__init__(self) self.put_object(request_id) self.put_object(client) self.put_string(username) self.put_int(flag)
def __init__(self, client_id, username): ServerMessage.__init__(self) self.put_object(client_id) self.put_string(username)
def __init__(self, data): ServerMessage.__init__(self) self.put_object(data)
def __init__(self, data): ServerMessage.__init__(self) self.put_string(data)
def __init__(self, turn): ServerMessage.__init__(self) self.put_bool(turn)
def __init__(self, round, description): ServerMessage.__init__(self) self.put_int(round) self.put_string(description)
def __init__(self, ip, port, key): ServerMessage.__init__(self) self.put_string(ip) self.put_int(port) self.put_string(key)
def __init__(self, idx, status): ServerMessage.__init__(self) self.put_object(idx) self.put_int(status)
def __init__(self, source, target): ServerMessage.__init__(self) self.put_object(source) self.put_object(target)
def __init__(self, is_white): ServerMessage.__init__(self) self.put_bool(is_white)
def __init__(self, key): ServerMessage.__init__(self) self.put_string(key)