Package org.nwolfhub.vk.longpoll
Class LongPoll
- java.lang.Object
-
- org.nwolfhub.vk.longpoll.LongPoll
-
- All Implemented Interfaces:
Serializable
public class LongPoll extends Object implements Serializable
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static List<Update>convertUpdateByType(List<Update> updates, Update.Type type)Excludes all updates from list that doesn't match their typestatic List<Update>convertUpdateByType(Update.Type type, List<Update> updates)Excludes all updates from list that doesn't match their typeList<Update>getUpdates()
-
-
-
Constructor Detail
-
LongPoll
public LongPoll(VkGroup vk, Integer groupId) throws IOException
- Throws:
IOException
-
-
Method Detail
-
getUpdates
public List<Update> getUpdates() throws IOException
- Throws:
IOException
-
convertUpdateByType
public static List<Update> convertUpdateByType(Update.Type type, List<Update> updates)
Excludes all updates from list that doesn't match their type- Parameters:
type- - type of updates you want to getupdates- - original list- Returns:
- List containing updates of your type
-
convertUpdateByType
public static List<Update> convertUpdateByType(List<Update> updates, Update.Type type)
Excludes all updates from list that doesn't match their type- Parameters:
updates- - original listtype- - type of updates you want to get- Returns:
- List containing updates of your type
-
-