Subversion Repositories SmartDukaan

Rev

Rev 23706 | Rev 23708 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 23706 Rev 23707
Line 1... Line 1...
1
package com.spice.profitmandi.common.model;
1
package com.spice.profitmandi.common.model;
2
 
2
 
3
public class GoogleLoginRequest {
3
public class GoogleLoginRequest {
4
	private String token;
4
	private String token;
-
 
5
	private String socialTypeString;
5
	private String type;
6
	private String type;
6
	
7
	
7
	public String getType() {
8
	public String getType() {
8
		return type;
9
		return type;
9
	}
10
	}
Line 18... Line 19...
18
		return token;
19
		return token;
19
	}
20
	}
20
	public void setToken(String token) {
21
	public void setToken(String token) {
21
		this.token = token;
22
		this.token = token;
22
	}
23
	}
23
 
24
	
-
 
25
	public String getSocialTypeString() {
-
 
26
		return socialTypeString;
-
 
27
	}
-
 
28
	public void setSocialTypeString(String socialTypeString) {
-
 
29
		this.socialTypeString = socialTypeString;
24
 
30
	}
25
	@Override
31
	@Override
26
	public int hashCode() {
32
	public int hashCode() {
27
		final int prime = 31;
33
		final int prime = 31;
28
		int result = 1;
34
		int result = 1;
-
 
35
		result = prime * result + ((socialTypeString == null) ? 0 : socialTypeString.hashCode());
29
		result = prime * result + ((token == null) ? 0 : token.hashCode());
36
		result = prime * result + ((token == null) ? 0 : token.hashCode());
30
		result = prime * result + ((type == null) ? 0 : type.hashCode());
-
 
31
		return result;
37
		return result;
32
	}
38
	}
33
	@Override
39
	@Override
34
	public boolean equals(Object obj) {
40
	public boolean equals(Object obj) {
35
		if (this == obj)
41
		if (this == obj)
Line 37... Line 43...
37
		if (obj == null)
43
		if (obj == null)
38
			return false;
44
			return false;
39
		if (getClass() != obj.getClass())
45
		if (getClass() != obj.getClass())
40
			return false;
46
			return false;
41
		GoogleLoginRequest other = (GoogleLoginRequest) obj;
47
		GoogleLoginRequest other = (GoogleLoginRequest) obj;
-
 
48
		if (socialTypeString == null) {
-
 
49
			if (other.socialTypeString != null)
-
 
50
				return false;
-
 
51
		} else if (!socialTypeString.equals(other.socialTypeString))
-
 
52
			return false;
42
		if (token == null) {
53
		if (token == null) {
43
			if (other.token != null)
54
			if (other.token != null)
44
				return false;
55
				return false;
45
		} else if (!token.equals(other.token))
56
		} else if (!token.equals(other.token))
46
			return false;
57
			return false;
47
		if (type == null) {
-
 
48
			if (other.type != null)
-
 
49
				return false;
-
 
50
		} else if (!type.equals(other.type))
-
 
51
			return false;
-
 
52
		return true;
58
		return true;
53
	}
59
	}
54
	@Override
60
	@Override
55
	public String toString() {
61
	public String toString() {
56
		return "GoogleLoginRequest [token=" + token + ", type=" + type + "]";
62
		return "GoogleLoginRequest [token=" + token + ", socialTypeString=" + socialTypeString + ", type=" + type + "]";
57
	}
63
	}
58
	
64
	
59
}
65
}