Class Subscriber


  • public class Subscriber
    extends Object
    This class represents a newsletter's subscriber
    • Method Detail

      • getCategoryId

        public String getCategoryId()
        Returns the newsletter category
        Returns:
        the newsletter category
      • getSiteName

        public String getSiteName()
        Returns the newsletter site name
        Returns:
        the newsletter site name
      • getEmail

        public String getEmail()
        Get the subscriber email
        Returns:
        the subscriber email
      • getSubscribedAt

        public Date getSubscribedAt()
        Returns the date of subscription
        Returns:
        the date of subscription
      • setEmail

        public void setEmail​(String email)
        Set the subscriber email
        Parameters:
        email - The email to set
      • setSiteName

        public void setSiteName​(String siteName)
        Set the site name
        Parameters:
        siteName - The site name to set
      • setCategoryId

        public void setCategoryId​(String categoryId)
        The id of the category
        Parameters:
        categoryId - The category's id
      • setSubscribedAt

        public void setSubscribedAt​(Date subscribedAt)
        Set the date of subscription
        Parameters:
        subscribedAt - The date of subscription
      • getToken

        public String getToken()
        Get the user token
        Returns:
        the user token
      • setToken

        public void setToken​(String token)
        Set the user token
        Parameters:
        token - the user token