Subversion Repositories SmartDukaan

Rev

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