예제 #1
0
    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)
예제 #2
0
    def __init__(self, client_id, username):
        ServerMessage.__init__(self)

        self.put_object(client_id)
        self.put_string(username)
예제 #3
0
    def __init__(self, data):
        ServerMessage.__init__(self)

        self.put_object(data)
예제 #4
0
    def __init__(self, data):
        ServerMessage.__init__(self)

        self.put_string(data)
예제 #5
0
    def __init__(self, turn):
        ServerMessage.__init__(self)

        self.put_bool(turn)
예제 #6
0
    def __init__(self, round, description):
        ServerMessage.__init__(self)

        self.put_int(round)
        self.put_string(description)
예제 #7
0
    def __init__(self, ip, port, key):
        ServerMessage.__init__(self)

        self.put_string(ip)
        self.put_int(port)
        self.put_string(key)
예제 #8
0
    def __init__(self, idx, status):
        ServerMessage.__init__(self)

        self.put_object(idx)
        self.put_int(status)
예제 #9
0
    def __init__(self, source, target):
        ServerMessage.__init__(self)

        self.put_object(source)
        self.put_object(target)
예제 #10
0
    def __init__(self, is_white):
        ServerMessage.__init__(self)

        self.put_bool(is_white)
예제 #11
0
    def __init__(self, key):
        ServerMessage.__init__(self)

        self.put_string(key)