Class CompanyRepresentative

java.lang.Object
src.model.User
src.model.user.CompanyRepresentative

public class CompanyRepresentative extends User
CompanyRepresentative Class
  • Field Details

    • company

      private String company
    • status

      private Status status
  • Constructor Details

    • CompanyRepresentative

      public CompanyRepresentative(String userID, String name, String passwordHash, String company)
      Constructs a CompanyRepresentative with the required attributes
      Parameters:
      userID - the company email address of the company representative
      name - the name of the company representative
      passwordHash - the passwordHash of the company representative
      company - the company of the company representative
  • Method Details

    • getCompany

      public String getCompany()
      Getter for company
      Returns:
      company
    • setCompany

      public void setCompany(String company)
      Setter for company
      Parameters:
      company - the company to set
    • getStatus

      public Status getStatus()
      Getter for status
      Returns:
      status
    • setStatus

      public void setStatus(Status status)
      Setter for status
      Parameters:
      status - the status to set
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object