Subversion Repositories SmartDukaan

Rev

Rev 26131 | View as "text/plain" | Blame | Compare with Previous | Last modification | View Log | RSS feed

package com.spice.profitmandi.common.model;

import java.util.Objects;

public class PromoterDetailModel {

        private int id;
        private String name;

        private String brand;

        private String email;

        private String mobile;

        private boolean sdPortalAccess;

        private boolean status;

        public boolean isStatus() {
                return status;
        }

        public void setStatus(boolean status) {
                this.status = status;
        }

        public boolean isSdPortalAccess() {
                return sdPortalAccess;
        }

        public void setSdPortalAccess(boolean sdPortalAccess) {
                this.sdPortalAccess = sdPortalAccess;
        }

        private int retailerId;

        public int getId() {
                return id;
        }

        public void setId(int id) {
                this.id = id;
        }

        public String getEmail() {
                return email;
        }

        public void setEmail(String email) {
                this.email = email;
        }

        public String getMobile() {
                return mobile;
        }

        public void setMobile(String mobile) {
                this.mobile = mobile;
        }

        public String getName() {
                return name;
        }

        public void setName(String name) {
                this.name = name;
        }

        public String getBrand() {
                return brand;
        }

        public void setBrand(String brand) {
                this.brand = brand;
        }

        public int getRetailerId() {
                return retailerId;
        }

        public void setRetailerId(int retailerId) {
                this.retailerId = retailerId;
        }


        @Override
        public boolean equals(Object o) {
                if (this == o) return true;
                if (o == null || getClass() != o.getClass()) return false;
                PromoterDetailModel that = (PromoterDetailModel) o;
                return id == that.id && sdPortalAccess == that.sdPortalAccess && status == that.status && retailerId == that.retailerId && Objects.equals(name, that.name) && Objects.equals(brand, that.brand) && Objects.equals(email, that.email) && Objects.equals(mobile, that.mobile);
        }

        @Override
        public int hashCode() {
                return Objects.hash(id, name, brand, email, mobile, sdPortalAccess, status, retailerId);
        }

        @Override
        public String toString() {
                return "PromoterDetailModel{" +
                                "id=" + id +
                                ", name='" + name + '\'' +
                                ", brand='" + brand + '\'' +
                                ", email='" + email + '\'' +
                                ", mobile='" + mobile + '\'' +
                                ", sdPortalAccess=" + sdPortalAccess +
                                ", status=" + status +
                                ", retailerId=" + retailerId +
                                '}';
        }
}