Subversion Repositories SmartDukaan

Rev

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

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