Subversion Repositories SmartDukaan

Rev

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

Rev 30051 Rev 30237
Line 1... Line 1...
1
package com.spice.profitmandi.dao.model;
1
package com.spice.profitmandi.dao.model;
2
 
2
 
3
import java.time.LocalDateTime;
3
import java.time.LocalDateTime;
4
 
-
 
-
 
4
import com.spice.profitmandi.dao.enumuration.transaction.SchemePayoutStatus;
5
public class LastMonthImeiModel {
5
public class LastMonthImeiModel {
6
 
6
 
7
	private String imei;
7
	private String imei;
8
	private float amount;
8
	private float amount;
9
	
9
	
10
	
-
 
-
 
10
	private float pendingSaleAmount;
11
	private String description;
11
	private String description;
12
	private LocalDateTime createTimeStamp;
12
	private LocalDateTime createTimeStamp;
-
 
13
	private SchemePayoutStatus status;
-
 
14
	
13
	public String getImei() {
15
	public String getImei() {
14
		return imei;
16
		return imei;
15
	}
17
	}
16
	public void setImei(String imei) {
18
	public void setImei(String imei) {
17
		this.imei = imei;
19
		this.imei = imei;
Line 33... Line 35...
33
	}
35
	}
34
	public void setCreateTimeStamp(LocalDateTime createTimeStamp) {
36
	public void setCreateTimeStamp(LocalDateTime createTimeStamp) {
35
		this.createTimeStamp = createTimeStamp;
37
		this.createTimeStamp = createTimeStamp;
36
	}
38
	}
37
	
39
	
-
 
40
	public float getPendingSaleAmount() {
-
 
41
		return pendingSaleAmount;
-
 
42
	}
-
 
43
	public void setPendingSaleAmount(float pendingSaleAmount) {
-
 
44
		this.pendingSaleAmount = pendingSaleAmount;
-
 
45
	}
38
	
46
	
39
	
47
	
40
	
48
	
-
 
49
	public SchemePayoutStatus getStatus() {
-
 
50
		return status;
-
 
51
	}
-
 
52
	public void setStatus(SchemePayoutStatus status) {
-
 
53
		this.status = status;
-
 
54
	}
41
	@Override
55
	@Override
42
	public int hashCode() {
56
	public int hashCode() {
43
		final int prime = 31;
57
		final int prime = 31;
44
		int result = 1;
58
		int result = 1;
45
		result = prime * result + Float.floatToIntBits(amount);
59
		result = prime * result + Float.floatToIntBits(amount);
46
		result = prime * result + ((createTimeStamp == null) ? 0 : createTimeStamp.hashCode());
60
		result = prime * result + ((createTimeStamp == null) ? 0 : createTimeStamp.hashCode());
47
		result = prime * result + ((description == null) ? 0 : description.hashCode());
61
		result = prime * result + ((description == null) ? 0 : description.hashCode());
48
		result = prime * result + ((imei == null) ? 0 : imei.hashCode());
62
		result = prime * result + ((imei == null) ? 0 : imei.hashCode());
-
 
63
		result = prime * result + Float.floatToIntBits(pendingSaleAmount);
-
 
64
		result = prime * result + ((status == null) ? 0 : status.hashCode());
49
		return result;
65
		return result;
50
	}
66
	}
51
	@Override
67
	@Override
52
	public boolean equals(Object obj) {
68
	public boolean equals(Object obj) {
53
		if (this == obj)
69
		if (this == obj)
Line 72... Line 88...
72
		if (imei == null) {
88
		if (imei == null) {
73
			if (other.imei != null)
89
			if (other.imei != null)
74
				return false;
90
				return false;
75
		} else if (!imei.equals(other.imei))
91
		} else if (!imei.equals(other.imei))
76
			return false;
92
			return false;
-
 
93
		if (Float.floatToIntBits(pendingSaleAmount) != Float.floatToIntBits(other.pendingSaleAmount))
-
 
94
			return false;
-
 
95
		if (status != other.status)
-
 
96
			return false;
77
		return true;
97
		return true;
78
	}
98
	}
-
 
99
	@Override
-
 
100
	public String toString() {
-
 
101
		return "LastMonthImeiModel [imei=" + imei + ", amount=" + amount + ", pendingSaleAmount=" + pendingSaleAmount
-
 
102
				+ ", description=" + description + ", createTimeStamp=" + createTimeStamp + ", status=" + status + "]";
-
 
103
	}
79
	public LastMonthImeiModel(String imei, float amount, String description, LocalDateTime createTimeStamp) {
104
	public LastMonthImeiModel(String imei, float amount, float pendingSaleAmount, String description,
-
 
105
			LocalDateTime createTimeStamp, SchemePayoutStatus status) {
80
		super();
106
		super();
81
		this.imei = imei;
107
		this.imei = imei;
82
		this.amount = amount;
108
		this.amount = amount;
-
 
109
		this.pendingSaleAmount = pendingSaleAmount;
83
		this.description = description;
110
		this.description = description;
84
		this.createTimeStamp = createTimeStamp;
111
		this.createTimeStamp = createTimeStamp;
-
 
112
		this.status = status;
85
	}
113
	}
86
	@Override
114
	
87
	public String toString() {
-
 
88
		return "LastMonthImeiModel [imei=" + imei + ", amount=" + amount + ", description=" + description
-
 
89
				+ ", createTimeStamp=" + createTimeStamp + "]";
-
 
90
	}
115
	
-
 
116
	
91
	
117
	
92
	
118
	
93
	
119
	
94
}
120
}