Subversion Repositories SmartDukaan

Rev

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

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