package ru.yandex.wmconsole.notifier.provider;

import java.util.List;

import org.jdom.Element;

import ru.yandex.wmconsole.data.NotificationChannelEnum;
import ru.yandex.wmconsole.data.info.NotificationInfo;
import ru.yandex.wmtools.common.error.InternalException;

/**
 * @author Andrey Mima (amima@yandex-team.ru)
 */
public interface Provider {
//    public SendStrategy getSendStrategy();

    /**
     * Returns null if notification can't be sent for some reason, and there is no need to try to resend it.
     */
    public List<Element> getNotificationElements(NotificationInfo notification, NotificationChannelEnum channel)
            throws InternalException;
}
