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