Subversion Repositories SmartDukaan

Rev

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