
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 core Show documentation
Show all versions of core 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.callback.longpoll.queries.GetLongPollEventsQuery;
import com.vk.api.sdk.client.AbstractAction;
import com.vk.api.sdk.client.VkApiClient;
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(String url, String key, Integer ts) {
return new GetLongPollEventsQuery(getClient(), url, key, ts);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy