Subversion Repositories SmartDukaan

Rev

Rev 28653 | Rev 33399 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 28653 Rev 31773
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
import java.util.Arrays;
4
import java.util.List;
5
import java.util.List;
-
 
6
import java.util.Objects;
5
 
7
 
6
import com.spice.profitmandi.dao.cart.CartItemMessage;
8
import com.spice.profitmandi.dao.cart.CartItemMessage;
7
import com.spice.profitmandi.service.inventory.BulkPricing;
9
import com.spice.profitmandi.service.inventory.BulkPricing;
8
 
10
 
9
public class CartItemResponseModel {
11
public class CartItemResponseModel {
Line 22... Line 24...
22
	private List<CartItemMessage> cartItemMessages;
24
	private List<CartItemMessage> cartItemMessages;
23
	private String color;
25
	private String color;
24
	private long quantity;
26
	private long quantity;
25
	private long catalogItemId;
27
	private long catalogItemId;
26
	private LocalDateTime promiseDelivery;
28
	private LocalDateTime promiseDelivery;
-
 
29
					private int availability;
-
 
30
 
-
 
31
 
-
 
32
	@Override
-
 
33
	public boolean equals(Object o) {
-
 
34
		if (this == o) return true;
-
 
35
		if (o == null || getClass() != o.getClass()) return false;
-
 
36
		CartItemResponseModel that = (CartItemResponseModel) o;
-
 
37
		return itemId == that.itemId && maxQuantity == that.maxQuantity && estimate == that.estimate && quantityStep == that.quantityStep && packQuantity == that.packQuantity && minBuyQuantity == that.minBuyQuantity && Double.compare(that.sellingPrice, sellingPrice) == 0 && quantity == that.quantity && catalogItemId == that.catalogItemId && availability == that.availability && Objects.equals(imageUrl, that.imageUrl) && Objects.equals(dealText, that.dealText) && Arrays.equals(bulkPricing, that.bulkPricing) && Objects.equals(categoryName, that.categoryName) && Objects.equals(title, that.title) && Objects.equals(cartItemMessages, that.cartItemMessages) && Objects.equals(color, that.color) && Objects.equals(promiseDelivery, that.promiseDelivery);
-
 
38
	}
-
 
39
 
-
 
40
	@Override
-
 
41
	public int hashCode() {
-
 
42
		int result = Objects.hash(imageUrl, dealText, itemId, maxQuantity, estimate, quantityStep, packQuantity, minBuyQuantity, categoryName, sellingPrice, title, cartItemMessages, color, quantity, catalogItemId, promiseDelivery, availability);
-
 
43
		result = 31 * result + Arrays.hashCode(bulkPricing);
-
 
44
		return result;
-
 
45
	}
-
 
46
 
-
 
47
	@Override
-
 
48
	public String toString() {
-
 
49
		return "CartItemResponseModel{" +
-
 
50
				"imageUrl='" + imageUrl + '\'' +
-
 
51
				", dealText='" + dealText + '\'' +
-
 
52
				", itemId=" + itemId +
-
 
53
				", maxQuantity=" + maxQuantity +
-
 
54
				", estimate=" + estimate +
-
 
55
				", quantityStep=" + quantityStep +
-
 
56
				", packQuantity=" + packQuantity +
-
 
57
				", minBuyQuantity=" + minBuyQuantity +
-
 
58
				", bulkPricing=" + Arrays.toString(bulkPricing) +
-
 
59
				", categoryName='" + categoryName + '\'' +
-
 
60
				", sellingPrice=" + sellingPrice +
-
 
61
				", title='" + title + '\'' +
-
 
62
				", cartItemMessages=" + cartItemMessages +
-
 
63
				", color='" + color + '\'' +
-
 
64
				", quantity=" + quantity +
-
 
65
				", catalogItemId=" + catalogItemId +
-
 
66
				", promiseDelivery=" + promiseDelivery +
-
 
67
				", shortQty=" + availability +
-
 
68
				'}';
-
 
69
	}
-
 
70
 
-
 
71
	public int getAvailability() {
-
 
72
		return availability;
-
 
73
	}
-
 
74
 
-
 
75
	public void setAvailability(int availability) {
-
 
76
		this.availability = availability;
-
 
77
	}
27
 
78
 
28
	public LocalDateTime getPromiseDelivery() {
79
	public LocalDateTime getPromiseDelivery() {
29
		return promiseDelivery;
80
		return promiseDelivery;
30
	}
81
	}
31
 
82