Subversion Repositories SmartDukaan

Rev

Rev 26131 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 26131 Rev 30949
Line 1... Line 1...
1
package com.spice.profitmandi.common.model;
1
package com.spice.profitmandi.common.model;
2
 
2
 
-
 
3
import java.util.Objects;
-
 
4
 
3
public class PromoterDetailModel {
5
public class PromoterDetailModel {
4
 
6
 
5
	private int id;
7
	private int id;
6
	private String name;
8
	private String name;
7
 
9
 
Line 79... Line 81...
79
 
81
 
80
	public void setRetailerId(int retailerId) {
82
	public void setRetailerId(int retailerId) {
81
		this.retailerId = retailerId;
83
		this.retailerId = retailerId;
82
	}
84
	}
83
 
85
 
-
 
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
	}
84
}
113
}