Interface Notifier

All Known Subinterfaces:
Bot
All Known Implementing Classes:
TelegramBot
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface Notifier
Контракт доставки уведомлений (порт e_lib.assistants.base.Notifier).

Реализуют мессенджеры (Telegram). Ассистенты и ThresholdMonitorAssistant принимают Notifier и вызывают sendMessage(String) для отправки предупреждений.

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Доставляет уведомление.
  • Method Details

    • sendMessage

      void sendMessage(String text)
      Доставляет уведомление.
      Parameters:
      text - текст сообщения