@Override
    public void deserialize(Buffer buf) {
        dungeonId = buf.readShort();
        if (dungeonId < 0)
            throw new RuntimeException("Forbidden value on dungeonId = " + dungeonId + ", it doesn't respect the following condition : dungeonId < 0");
        inviterId = buf.readInt();
        if (inviterId < 0)
            throw new RuntimeException("Forbidden value on inviterId = " + inviterId + ", it doesn't respect the following condition : inviterId < 0");
        int limit = buf.readUShort();
        invalidBuddiesIds = new int[limit];
        for (int i = 0; i < limit; i++) {
            invalidBuddiesIds[i] = buf.readInt();
        }
    }