Subversion Repositories SmartDukaan

Rev

Rev 23706 | Rev 23708 | 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
	}
14
	public GoogleLoginRequest(String type) {
15
		super();
16
		this.type = type;
17
	}
22924 ashik.ali 18
	public String getToken() {
19
		return token;
20
	}
21
	public void setToken(String token) {
22
		this.token = token;
23
	}
23707 amit.gupta 24
 
25
	public String getSocialTypeString() {
26
		return socialTypeString;
27
	}
28
	public void setSocialTypeString(String socialTypeString) {
29
		this.socialTypeString = socialTypeString;
30
	}
22924 ashik.ali 31
	@Override
32
	public int hashCode() {
33
		final int prime = 31;
34
		int result = 1;
23707 amit.gupta 35
		result = prime * result + ((socialTypeString == null) ? 0 : socialTypeString.hashCode());
22924 ashik.ali 36
		result = prime * result + ((token == null) ? 0 : token.hashCode());
37
		return result;
38
	}
39
	@Override
40
	public boolean equals(Object obj) {
41
		if (this == obj)
42
			return true;
43
		if (obj == null)
44
			return false;
45
		if (getClass() != obj.getClass())
46
			return false;
47
		GoogleLoginRequest other = (GoogleLoginRequest) obj;
23707 amit.gupta 48
		if (socialTypeString == null) {
49
			if (other.socialTypeString != null)
50
				return false;
51
		} else if (!socialTypeString.equals(other.socialTypeString))
52
			return false;
22924 ashik.ali 53
		if (token == null) {
54
			if (other.token != null)
55
				return false;
56
		} else if (!token.equals(other.token))
57
			return false;
58
		return true;
59
	}
60
	@Override
61
	public String toString() {
23707 amit.gupta 62
		return "GoogleLoginRequest [token=" + token + ", socialTypeString=" + socialTypeString + ", type=" + type + "]";
22924 ashik.ali 63
	}
64
 
65
}