Package notification

Class Subscriber

java.lang.Object
notification.Subscriber

class Subscriber extends Object
Class representing a subscriber to the alert system. This class stores subscriber-related information via four attributes.
  • Field Details

    • nom

      private String nom
      The client's name.
    • mode

      private String mode
      The transmission mode.
    • adresse

      private String adresse
      The client's address.
  • Constructor Details

    • Subscriber

      public Subscriber(String nom, String mode, String adr)
      Method for creating a new client.
      Parameters:
      nom - : The client's name.
      mode - : The transmission mode for the client.
      adr - : The client's address.
  • Method Details

    • getNom

      public String getNom()
      Accessor to retrieve the client's name.
      Returns:
      the client's name.
    • getMode

      public String getMode()
      Accessor to retrieve the client's alert mode.
      Returns:
      the transmission mode for the client.
    • getAdresse

      public String getAdresse()
      Accessor to retrieve the client's contact address.
      Returns:
      the client's address.