Subversion Repositories SmartDukaan

Rev

Rev 24107 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 24107 Rev 28867
Line 1... Line 1...
1
package com.spice.profitmandi.common.model;
1
package com.spice.profitmandi.common.model;
2
 
2
 
-
 
3
import java.util.List;
-
 
4
 
3
public class PartnerTargetModel {
5
public class PartnerTargetModel {
4
	
6
	
-
 
7
	
-
 
8
	
5
	private int fofoId;
9
	private int fofoId;
6
	private String storeName;
10
	private String storeName;
7
	private String email;
11
	private String email;
8
	private float targetValue;
12
	List<Integer> targets;
9
	public int getFofoId() {
13
	public int getFofoId() {
10
		return fofoId;
14
		return fofoId;
11
	}
15
	}
12
	public void setFofoId(int fofoId) {
16
	public void setFofoId(int fofoId) {
13
		this.fofoId = fofoId;
17
		this.fofoId = fofoId;
Line 22... Line 26...
22
		return email;
26
		return email;
23
	}
27
	}
24
	public void setEmail(String email) {
28
	public void setEmail(String email) {
25
		this.email = email;
29
		this.email = email;
26
	}
30
	}
27
	public float getTargetValue() {
31
	public List<Integer> getTargets() {
28
		return targetValue;
32
		return targets;
29
	}
33
	}
30
	public void setTargetValue(float targetValue) {
34
	public void setTargets(List<Integer> targets) {
31
		this.targetValue = targetValue;
35
		this.targets = targets;
32
	}
36
	}
-
 
37
	@Override
-
 
38
	public String toString() {
-
 
39
		return "PartnerTargetModel [fofoId=" + fofoId + ", storeName=" + storeName + ", email=" + email + ", targets="
-
 
40
				+ targets + "]";
-
 
41
	}
-
 
42
	@Override
-
 
43
	public int hashCode() {
-
 
44
		final int prime = 31;
-
 
45
		int result = 1;
-
 
46
		result = prime * result + ((email == null) ? 0 : email.hashCode());
-
 
47
		result = prime * result + fofoId;
-
 
48
		result = prime * result + ((storeName == null) ? 0 : storeName.hashCode());
-
 
49
		result = prime * result + ((targets == null) ? 0 : targets.hashCode());
-
 
50
		return result;
-
 
51
	}
-
 
52
	@Override
-
 
53
	public boolean equals(Object obj) {
-
 
54
		if (this == obj)
-
 
55
			return true;
-
 
56
		if (obj == null)
-
 
57
			return false;
-
 
58
		if (getClass() != obj.getClass())
-
 
59
			return false;
-
 
60
		PartnerTargetModel other = (PartnerTargetModel) obj;
-
 
61
		if (email == null) {
-
 
62
			if (other.email != null)
-
 
63
				return false;
-
 
64
		} else if (!email.equals(other.email))
-
 
65
			return false;
-
 
66
		if (fofoId != other.fofoId)
-
 
67
			return false;
-
 
68
		if (storeName == null) {
-
 
69
			if (other.storeName != null)
-
 
70
				return false;
-
 
71
		} else if (!storeName.equals(other.storeName))
-
 
72
			return false;
-
 
73
		if (targets == null) {
-
 
74
			if (other.targets != null)
-
 
75
				return false;
-
 
76
		} else if (!targets.equals(other.targets))
-
 
77
			return false;
-
 
78
		return true;
-
 
79
	}
-
 
80
 
33
	
81
	
34
}
82
}