/*
 * OpenAPI Petstore
 * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
 *
 * OpenAPI spec version: 1.0.0
 * 
 *
 * NOTE: This class is auto generated by the OAS code generator program.
 * https://github.com/OAS-api/OAS-codegen.git
 * Do not edit the class manually.
 */

/**
 * A User who is purchasing from the pet store
 */
public class OASUser {
    /**
     * Get id
     * @return id
     */
    public Long id { get; set; }

    /**
     * Get username
     * @return username
     */
    public String username { get; set; }

    /**
     * Get firstName
     * @return firstName
     */
    public String firstName { get; set; }

    /**
     * Get lastName
     * @return lastName
     */
    public String lastName { get; set; }

    /**
     * Get email
     * @return email
     */
    public String email { get; set; }

    /**
     * Get password
     * @return password
     */
    public String password { get; set; }

    /**
     * Get phone
     * @return phone
     */
    public String phone { get; set; }

    /**
     * User Status
     * @return userStatus
     */
    public Integer userStatus { get; set; }

    public static OASUser getExample() {
        OASUser user = new OASUser();
          user.id = 123456789L;
          user.username = '';
          user.firstName = '';
          user.lastName = '';
          user.email = '';
          user.password = '';
          user.phone = '';
          user.userStatus = 0;
        return user;
    }

    public Boolean equals(Object obj) {
        if (obj instanceof OASUser) {           
            OASUser user = (OASUser) obj;
            return this.id == user.id
                && this.username == user.username
                && this.firstName == user.firstName
                && this.lastName == user.lastName
                && this.email == user.email
                && this.password == user.password
                && this.phone == user.phone
                && this.userStatus == user.userStatus;
        }
        return false;
    }

    public Integer hashCode() {
        Integer hashCode = 43;
        hashCode = (17 * hashCode) + (id == null ? 0 : System.hashCode(id));
        hashCode = (17 * hashCode) + (username == null ? 0 : System.hashCode(username));
        hashCode = (17 * hashCode) + (firstName == null ? 0 : System.hashCode(firstName));
        hashCode = (17 * hashCode) + (lastName == null ? 0 : System.hashCode(lastName));
        hashCode = (17 * hashCode) + (email == null ? 0 : System.hashCode(email));
        hashCode = (17 * hashCode) + (password == null ? 0 : System.hashCode(password));
        hashCode = (17 * hashCode) + (phone == null ? 0 : System.hashCode(phone));
        hashCode = (17 * hashCode) + (userStatus == null ? 0 : System.hashCode(userStatus));
        return hashCode;
    }
}

