java.lang.Object
it.unisa.c03.myPersonalTrainer.subscription.bean.Subscription

public class Subscription
extends java.lang.Object
Subscription bean.
  • Constructor Summary

    Constructors
    Constructor Description
    Subscription()
    constructor of the class.
    Subscription​(java.lang.String customerEmail, java.lang.String date, java.lang.String cost)
    constructor of the class.
  • Method Summary

    Modifier and Type Method Description
    java.lang.String getCustomerMail()
    method for get the customer email.
    java.lang.String getExpDate()
    method for get the expiration date of the subscription.
    java.lang.String getPrice()
    method for get the subscription price.
    int getSentNotification()  
    void setCustomerMail​(java.lang.String customerEmail)
    method for set the email.
    void setExpDate​(java.lang.String date)
    method for set the expiration date of the subscription.
    void setPrice​(java.lang.String cost)
    method for set the subscription price.
    void setSentNotification​(int sentNotification)  
    java.lang.String toString()
    method to string.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Subscription

      public Subscription()
      constructor of the class.
    • Subscription

      public Subscription​(java.lang.String customerEmail, java.lang.String date, java.lang.String cost)
      constructor of the class.
      Parameters:
      customerEmail - the customer email
      date - the expiration date of the subscription
      cost - the subscription price
  • Method Details

    • getSentNotification

      public int getSentNotification()
    • setSentNotification

      public void setSentNotification​(int sentNotification)
    • getCustomerMail

      public java.lang.String getCustomerMail()
      method for get the customer email.
      Returns:
      the email
    • setCustomerMail

      public void setCustomerMail​(java.lang.String customerEmail)
      method for set the email.
      Parameters:
      customerEmail - email
    • getExpDate

      public java.lang.String getExpDate()
      method for get the expiration date of the subscription.
      Returns:
      the date
    • setExpDate

      public void setExpDate​(java.lang.String date)
      method for set the expiration date of the subscription.
      Parameters:
      date - to set
    • getPrice

      public java.lang.String getPrice()
      method for get the subscription price.
      Returns:
      the price
    • setPrice

      public void setPrice​(java.lang.String cost)
      method for set the subscription price.
      Parameters:
      cost - to set
    • toString

      public java.lang.String toString()
      method to string.
      Overrides:
      toString in class java.lang.Object