Subversion Repositories SmartDukaan

Rev

Rev 22139 | Rev 23597 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
21561 ashik.ali 1
package com.spice.profitmandi.web.model;
2
 
22111 ashik.ali 3
import java.util.Set;
4
 
5
import com.spice.profitmandi.dao.enumuration.dtr.RoleType;
6
 
22139 amit.gupta 7
public class LoginDetails {
21561 ashik.ali 8
	private int fofoId;
9
	private String emailId;
22111 ashik.ali 10
	private Set<RoleType> roleTypes;
21561 ashik.ali 11
	public int getFofoId() {
12
		return fofoId;
13
	}
14
	public void setFofoId(int fofoId) {
15
		this.fofoId = fofoId;
16
	}
17
	public String getEmailId() {
18
		return emailId;
19
	}
20
	public void setEmailId(String emailId) {
21
		this.emailId = emailId;
22
	}
22111 ashik.ali 23
	public Set<RoleType> getRoleTypes() {
24
		return roleTypes;
25
	}
26
	public void setRoleTypes(Set<RoleType> roleTypes) {
27
		this.roleTypes = roleTypes;
28
	}
21925 ashik.ali 29
	@Override
30
	public int hashCode() {
31
		final int prime = 31;
32
		int result = 1;
33
		result = prime * result + ((emailId == null) ? 0 : emailId.hashCode());
34
		result = prime * result + fofoId;
22111 ashik.ali 35
		result = prime * result + ((roleTypes == null) ? 0 : roleTypes.hashCode());
21925 ashik.ali 36
		return result;
37
	}
38
	@Override
39
	public boolean equals(Object obj) {
40
		if (this == obj)
41
			return true;
42
		if (obj == null)
43
			return false;
44
		if (getClass() != obj.getClass())
45
			return false;
22139 amit.gupta 46
		LoginDetails other = (LoginDetails) obj;
21925 ashik.ali 47
		if (emailId == null) {
48
			if (other.emailId != null)
49
				return false;
50
		} else if (!emailId.equals(other.emailId))
51
			return false;
52
		if (fofoId != other.fofoId)
53
			return false;
22111 ashik.ali 54
		if (roleTypes == null) {
55
			if (other.roleTypes != null)
56
				return false;
57
		} else if (!roleTypes.equals(other.roleTypes))
58
			return false;
21925 ashik.ali 59
		return true;
60
	}
61
	@Override
62
	public String toString() {
22533 ashik.ali 63
		return "FofoDetails [fofoId=" + fofoId + ", emailId=" + emailId + ", roleTypes=" + roleTypes
22139 amit.gupta 64
				+ "]";
21925 ashik.ali 65
	}
66
 
21561 ashik.ali 67
}