Class LongPoll

    • Method Detail

      • 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 get
        updates - - 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 list
        type - - type of updates you want to get
        Returns:
        List containing updates of your type