Class Subscription
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.StringgetCustomerMail()method for get the customer email.java.lang.StringgetExpDate()method for get the expiration date of the subscription.java.lang.StringgetPrice()method for get the subscription price.intgetSentNotification()voidsetCustomerMail(java.lang.String customerEmail)method for set the email.voidsetExpDate(java.lang.String date)method for set the expiration date of the subscription.voidsetPrice(java.lang.String cost)method for set the subscription price.voidsetSentNotification(int sentNotification)java.lang.StringtoString()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 emaildate- the expiration date of the subscriptioncost- 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:
toStringin classjava.lang.Object
-