Subversion Repositories SmartDukaan

Rev

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