Subversion Repositories SmartDukaan

Rev

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

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