Subversion Repositories SmartDukaan

Rev

Rev 30158 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
30158 manish 1
package com.spice.profitmandi.dao.model;
2
 
3
import java.time.LocalDateTime;
4
 
5
 
6
public class PriceDropReportModel {
33143 tejus.loha 7
 
30158 manish 8
    private String code;
33143 tejus.loha 9
    private int id;
10
    private String brand;
11
    private String modelName;
12
    private String modelNumber;
13
    private LocalDateTime affectedOn;
14
    private float amount;
15
 
16
    private float partnerPayout;
17
 
18
    private String imei;
19
    private String status;
20
    private LocalDateTime updateTimestamp;
21
    private String rejectionReason;
22
    private LocalDateTime creditTimestamp;
23
    private LocalDateTime rejectedTimestamp;
24
 
25
    public PriceDropReportModel() {
26
        super();
27
        // TODO Auto-generated constructor stub
28
    }
29
 
30
    public PriceDropReportModel(String code, int id, String brand, String modelName, String modelNumber,
31
                                LocalDateTime affectedOn, float amount, float partnerPayout, String imei, String status,
32
                                LocalDateTime updateTimestamp, String rejectionReason, LocalDateTime creditTimestamp, LocalDateTime rejectedTimestamp) {
33
        super();
34
        this.code = code;
35
        this.id = id;
36
        this.brand = brand;
37
        this.modelName = modelName;
38
        this.modelNumber = modelNumber;
39
        this.affectedOn = affectedOn;
40
        this.amount = amount;
41
        this.partnerPayout = partnerPayout;
42
        this.imei = imei;
43
        this.status = status;
44
        this.updateTimestamp = updateTimestamp;
45
        this.rejectionReason = rejectionReason;
46
        this.creditTimestamp = creditTimestamp;
47
        this.rejectedTimestamp = rejectedTimestamp;
48
    }
49
 
50
    public LocalDateTime getCreditTimestamp() {
51
        return creditTimestamp;
52
    }
53
 
54
    public void setCreditTimestamp(LocalDateTime creditTimestamp) {
55
        this.creditTimestamp = creditTimestamp;
56
    }
57
 
58
    public LocalDateTime getRejectedTimestamp() {
59
        return rejectedTimestamp;
60
    }
61
 
62
    public void setRejectedTimestamo(LocalDateTime rejectedTimestamo) {
63
        this.rejectedTimestamp = rejectedTimestamo;
64
    }
65
 
66
    public String getCode() {
67
        return code;
68
    }
69
 
70
    public void setCode(String code) {
71
        this.code = code;
72
    }
73
 
74
    public int getId() {
75
        return id;
76
    }
77
 
78
    public void setId(int id) {
79
        this.id = id;
80
    }
81
 
82
    public String getBrand() {
83
        return brand;
84
    }
85
 
86
    public void setBrand(String brand) {
87
        this.brand = brand;
88
    }
89
 
90
    public String getModelName() {
91
        return modelName;
92
    }
93
 
94
    public void setModelName(String modelName) {
95
        this.modelName = modelName;
96
    }
97
 
98
    public String getModelNumber() {
99
        return modelNumber;
100
    }
101
 
102
    public void setModelNumber(String modelNumber) {
103
        this.modelNumber = modelNumber;
104
    }
105
 
106
    public LocalDateTime getAffectedOn() {
107
        return affectedOn;
108
    }
109
 
110
    public void setAffectedOn(LocalDateTime affectedOn) {
111
        this.affectedOn = affectedOn;
112
    }
113
 
114
    public float getAmount() {
115
        return amount;
116
    }
117
 
118
    public void setAmount(float amount) {
119
        this.amount = amount;
120
    }
121
 
122
    public float getPartnerPayout() {
123
        return partnerPayout;
124
    }
125
 
126
    public void setPartnerPayout(float partnerPayout) {
127
        this.partnerPayout = partnerPayout;
128
    }
129
 
130
    public String getImei() {
131
        return imei;
132
    }
133
 
134
    public void setImei(String imei) {
135
        this.imei = imei;
136
    }
137
 
138
    public String getStatus() {
139
        return status;
140
    }
141
 
142
    public void setStatus(String status) {
143
        this.status = status;
144
    }
145
 
146
    public LocalDateTime getUpdateTimestamp() {
147
        return updateTimestamp;
148
    }
149
 
150
    public void setUpdateTimestamp(LocalDateTime updateTimestamp) {
151
        this.updateTimestamp = updateTimestamp;
152
    }
153
 
154
    public String getRejectionReason() {
155
        return rejectionReason;
156
    }
157
 
158
    public void setRejectionReason(String rejectionReason) {
159
        this.rejectionReason = rejectionReason;
160
    }
161
 
162
    @Override
163
    public String toString() {
164
        return "PriceDropReportModel [code=" + code + ", id=" + id + ", brand=" + brand + ", modelName=" + modelName
165
                + ", modelNumber=" + modelNumber + ", affectedOn=" + affectedOn + ", amount=" + amount
166
                + ", partnerPayout=" + partnerPayout + ", imei=" + imei + ", status=" + status + ", updateTimestamp="
167
                + updateTimestamp + ", rejectionReason=" + rejectionReason + "]";
168
    }
169
 
170
    @Override
171
    public int hashCode() {
172
        final int prime = 31;
173
        int result = 1;
174
        result = prime * result + ((affectedOn == null) ? 0 : affectedOn.hashCode());
175
        result = prime * result + Float.floatToIntBits(amount);
176
        result = prime * result + ((brand == null) ? 0 : brand.hashCode());
177
        result = prime * result + ((code == null) ? 0 : code.hashCode());
178
        result = prime * result + id;
179
        result = prime * result + ((imei == null) ? 0 : imei.hashCode());
180
        result = prime * result + ((modelName == null) ? 0 : modelName.hashCode());
181
        result = prime * result + ((modelNumber == null) ? 0 : modelNumber.hashCode());
182
        result = prime * result + Float.floatToIntBits(partnerPayout);
183
        result = prime * result + ((rejectionReason == null) ? 0 : rejectionReason.hashCode());
184
        result = prime * result + ((status == null) ? 0 : status.hashCode());
185
        result = prime * result + ((updateTimestamp == null) ? 0 : updateTimestamp.hashCode());
186
        return result;
187
    }
188
 
189
    @Override
190
    public boolean equals(Object obj) {
191
        if (this == obj)
192
            return true;
193
        if (obj == null)
194
            return false;
195
        if (getClass() != obj.getClass())
196
            return false;
197
        PriceDropReportModel other = (PriceDropReportModel) obj;
198
        if (affectedOn == null) {
199
            if (other.affectedOn != null)
200
                return false;
201
        } else if (!affectedOn.equals(other.affectedOn))
202
            return false;
203
        if (Float.floatToIntBits(amount) != Float.floatToIntBits(other.amount))
204
            return false;
205
        if (brand == null) {
206
            if (other.brand != null)
207
                return false;
208
        } else if (!brand.equals(other.brand))
209
            return false;
210
        if (code == null) {
211
            if (other.code != null)
212
                return false;
213
        } else if (!code.equals(other.code))
214
            return false;
215
        if (id != other.id)
216
            return false;
217
        if (imei == null) {
218
            if (other.imei != null)
219
                return false;
220
        } else if (!imei.equals(other.imei))
221
            return false;
222
        if (modelName == null) {
223
            if (other.modelName != null)
224
                return false;
225
        } else if (!modelName.equals(other.modelName))
226
            return false;
227
        if (modelNumber == null) {
228
            if (other.modelNumber != null)
229
                return false;
230
        } else if (!modelNumber.equals(other.modelNumber))
231
            return false;
232
        if (Float.floatToIntBits(partnerPayout) != Float.floatToIntBits(other.partnerPayout))
233
            return false;
234
        if (rejectionReason == null) {
235
            if (other.rejectionReason != null)
236
                return false;
237
        } else if (!rejectionReason.equals(other.rejectionReason))
238
            return false;
239
        if (status == null) {
240
            if (other.status != null)
241
                return false;
242
        } else if (!status.equals(other.status))
243
            return false;
244
        if (updateTimestamp == null) {
245
            if (other.updateTimestamp != null)
246
                return false;
247
        } else if (!updateTimestamp.equals(other.updateTimestamp))
248
            return false;
249
        return true;
250
    }
251
 
252
 
30158 manish 253
}