package com.vk.api.sdk.queries.photos;

import com.vk.api.sdk.client.AbstractQueryBuilder;
import com.vk.api.sdk.client.VkApiClient;
import com.vk.api.sdk.client.actors.GroupActor;
import com.vk.api.sdk.client.actors.UserActor;
import com.vk.api.sdk.objects.photos.PhotoUpload;

import java.util.Arrays;
import java.util.List;

/**
 * Query for Photos.getMessagesUploadServer method
 */
public class PhotosGetMessagesUploadServerQuery extends AbstractQueryBuilder<PhotosGetMessagesUploadServerQuery, PhotoUpload> {
    /**
     * Creates a AbstractQueryBuilder instance that can be used to build api request with various parameters
     *
     * @param client VK API client
     * @param actor  actor with access token
     */
    public PhotosGetMessagesUploadServerQuery(VkApiClient client, UserActor actor) {
        super(client, "photos.getMessagesUploadServer", PhotoUpload.class);
        accessToken(actor.getAccessToken());
    }

    /**
     * Creates a AbstractQueryBuilder instance that can be used to build api request with various parameters
     *
     * @param client VK API client
     * @param actor  actor with access token
     */
    public PhotosGetMessagesUploadServerQuery(VkApiClient client, GroupActor actor) {
        super(client, "photos.getMessagesUploadServer", PhotoUpload.class);
        accessToken(actor.getAccessToken());
    }

    @Override
    protected PhotosGetMessagesUploadServerQuery getThis() {
        return this;
    }

    @Override
    protected List<String> essentialKeys() {
        return Arrays.asList("access_token");
    }
}

@@ -1351,32 +1351,352 @@
 oken());%0A    %7D%0A%0A
+    /**%0A     * Set peer id%0A     *%0A     * @param value value of %22peer id%22 parameter.%0A     * @return a reference to this %7B@code AbstractQueryBuilder%7D object to fulfill the %22Builder%22 pattern.%0A     */%0A    public PhotosGetMessagesUploadServerQuery peerId(Integer value) %7B%0A        return unsafeParam(%22peer_id%22, value);%0A    %7D%0A%0A
     @Override%0A  

Support peer_id in PhotosGetMessagesUploadServerQuery