Subversion Repositories SmartDukaan

Rev

Rev 26131 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
24159 tejbeer 1
package com.spice.profitmandi.common.model;
2
 
30949 amit.gupta 3
import java.util.Objects;
4
 
24159 tejbeer 5
public class PromoterDetailModel {
6
 
7
	private int id;
8
	private String name;
9
 
10
	private String brand;
11
 
12
	private String email;
13
 
14
	private String mobile;
26131 tejbeer 15
 
24429 tejbeer 16
	private boolean sdPortalAccess;
24159 tejbeer 17
 
26131 tejbeer 18
	private boolean status;
19
 
20
	public boolean isStatus() {
21
		return status;
22
	}
23
 
24
	public void setStatus(boolean status) {
25
		this.status = status;
26
	}
27
 
24429 tejbeer 28
	public boolean isSdPortalAccess() {
29
		return sdPortalAccess;
30
	}
31
 
32
	public void setSdPortalAccess(boolean sdPortalAccess) {
33
		this.sdPortalAccess = sdPortalAccess;
34
	}
35
 
24159 tejbeer 36
	private int retailerId;
37
 
38
	public int getId() {
39
		return id;
40
	}
41
 
42
	public void setId(int id) {
43
		this.id = id;
44
	}
45
 
46
	public String getEmail() {
47
		return email;
48
	}
49
 
50
	public void setEmail(String email) {
51
		this.email = email;
52
	}
53
 
54
	public String getMobile() {
55
		return mobile;
56
	}
57
 
58
	public void setMobile(String mobile) {
59
		this.mobile = mobile;
60
	}
61
 
62
	public String getName() {
63
		return name;
64
	}
65
 
66
	public void setName(String name) {
67
		this.name = name;
68
	}
69
 
70
	public String getBrand() {
71
		return brand;
72
	}
73
 
74
	public void setBrand(String brand) {
75
		this.brand = brand;
76
	}
77
 
78
	public int getRetailerId() {
79
		return retailerId;
80
	}
81
 
82
	public void setRetailerId(int retailerId) {
83
		this.retailerId = retailerId;
84
	}
85
 
30949 amit.gupta 86
 
87
	@Override
88
	public boolean equals(Object o) {
89
		if (this == o) return true;
90
		if (o == null || getClass() != o.getClass()) return false;
91
		PromoterDetailModel that = (PromoterDetailModel) o;
92
		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);
93
	}
94
 
95
	@Override
96
	public int hashCode() {
97
		return Objects.hash(id, name, brand, email, mobile, sdPortalAccess, status, retailerId);
98
	}
99
 
100
	@Override
101
	public String toString() {
102
		return "PromoterDetailModel{" +
103
				"id=" + id +
104
				", name='" + name + '\'' +
105
				", brand='" + brand + '\'' +
106
				", email='" + email + '\'' +
107
				", mobile='" + mobile + '\'' +
108
				", sdPortalAccess=" + sdPortalAccess +
109
				", status=" + status +
110
				", retailerId=" + retailerId +
111
				'}';
112
	}
24159 tejbeer 113
}