public class Subscriber extends Object
Modifier and Type | Field and Description |
---|---|
private String |
_categoryId |
private String |
_email |
private String |
_siteName |
private Date |
_subscribedAt |
private String |
_token |
Constructor and Description |
---|
Subscriber() |
Modifier and Type | Method and Description |
---|---|
String |
getCategoryId()
Returns the newsletter category
|
String |
getEmail()
Get the subscriber email
|
String |
getSiteName()
Returns the newsletter site name
|
Date |
getSubscribedAt()
Returns the date of subscription
|
String |
getToken()
Get the user token
|
void |
setCategoryId(String categoryId)
The id of the category
|
void |
setEmail(String email)
Set the subscriber email
|
void |
setSiteName(String siteName)
Set the site name
|
void |
setSubscribedAt(Date subscribedAt)
Set the date of subscription
|
void |
setToken(String token)
Set the user token
|
private String _categoryId
private Date _subscribedAt
public Subscriber()
public String getCategoryId()
public String getSiteName()
public Date getSubscribedAt()
public void setEmail(String email)
email
- The email to setpublic void setSiteName(String siteName)
siteName
- The site name to setpublic void setCategoryId(String categoryId)
categoryId
- The category's idpublic void setSubscribedAt(Date subscribedAt)
subscribedAt
- The date of subscription