Interface ServiceMessageParserCallback

    • Method Detail

      • regularText

        void regularText​(@NotNull
                         String text)
        Called for the regular text, i.e. for the text that does not contain service messages in it.
        Parameters:
        text - test that does not contain service messages in it
      • serviceMessage

        void serviceMessage​(@NotNull
                            ServiceMessage message)
        Called for each parsed service message
        Parameters:
        message - parsed service message
      • parseException

        void parseException​(@NotNull
                            ParseException parseException,
                            @NotNull
                            String text)
        Called when text looked like service message but parser failed to create service message object from it for some reason.
        Parameters:
        parseException - exception
        text - text that parser failed to parse