com.vk.api.sdk.actions.LongPoll Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sdk Show documentation
Show all versions of sdk Show documentation
Java library for VK API interaction, includes OAuth 2.0 authorization and API methods.
The newest version!
package com.vk.api.sdk.actions;
import com.vk.api.sdk.queries.longpoll.GetLongPollEventsQuery;
import com.vk.api.sdk.client.AbstractAction;
import com.vk.api.sdk.client.VkApiClient;
import java.net.URI;
public class LongPoll extends AbstractAction {
/**
* Constructor
*
* @param client vk api client
*/
public LongPoll(VkApiClient client) {
super(client);
}
/**
* Retrieves events from long poll server starting from the specified timestamp.
*/
public GetLongPollEventsQuery getEvents(URI url, String key, String ts) {
return new GetLongPollEventsQuery(getClient(), url, key, ts);
}
}