Package notification

Class MailCommunication

java.lang.Object
notification.MailCommunication
All Implemented Interfaces:
CommunicationStrategy

class MailCommunication extends Object implements CommunicationStrategy
This is a subclass of the CommunicationStrategy class. It overrides the envoyer method for the "MAIL" mode. This method produces a simple display output.
  • Constructor Details

    • MailCommunication

      MailCommunication()
  • Method Details

    • envoyer

      public void envoyer(String clientName, String adresse, String message)
      Method for displaying an alert message sent to a client at a given email address.
      Specified by:
      envoyer in interface CommunicationStrategy
      Parameters:
      clientName - : The name of the client.
      adresse - : The client's address.
      message - : The message sent.