From 5b81634bfb5f5ab7946477a8d24225fdf3cda948 Mon Sep 17 00:00:00 2001 From: DmitriyMX Date: Mon, 10 Dec 2018 12:36:22 +0300 Subject: [PATCH] =?UTF-8?q?=D0=BF=D0=B5=D1=80=D0=B5=D0=B8=D0=BC=D0=B5?= =?UTF-8?q?=D0=BD=D0=BE=D0=B2=D0=B0=D0=BD=D0=B8=D0=B5=20=D0=BC=D0=B5=D1=82?= =?UTF-8?q?=D0=BE=D0=B4=D0=B0=20getLongPollListener()=20->=20createLongPol?= =?UTF-8?q?lListener()?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/ru/dmitriymx/vkapi/VkApi.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/ru/dmitriymx/vkapi/VkApi.java b/src/main/java/ru/dmitriymx/vkapi/VkApi.java index c8199af..09d5bf4 100644 --- a/src/main/java/ru/dmitriymx/vkapi/VkApi.java +++ b/src/main/java/ru/dmitriymx/vkapi/VkApi.java @@ -76,7 +76,7 @@ public class VkApi implements Runnable { .build()); } - public LongPollListener getLongPollListener() throws IOException { + public LongPollListener createLongPollListener() throws IOException { JsonObject jsonObject = execApi("messages.getLongPollServer", Collections.singletonMap("need_pts", "1")); jsonObject = jsonObject.getAsJsonObject("response");