| 35549 |
ranu |
1 |
package com.spice.profitmandi.dao.model;
|
|
|
2 |
|
|
|
3 |
import com.spice.profitmandi.common.model.ProfitMandiConstants;
|
|
|
4 |
|
|
|
5 |
import java.time.LocalDateTime;
|
|
|
6 |
import java.util.List;
|
|
|
7 |
import java.util.Objects;
|
|
|
8 |
|
|
|
9 |
public class BulletinOfferModal {
|
|
|
10 |
long offerId;
|
|
|
11 |
String title;
|
|
|
12 |
String description;
|
|
|
13 |
String createdTime;
|
|
|
14 |
List<Integer> documentIds;
|
|
|
15 |
List<CatalogBrief> catalogBriefList;
|
|
|
16 |
List<PartnerBrief> partnerBriefList;
|
|
|
17 |
boolean isCatalogOffer;
|
|
|
18 |
LocalDateTime createdAt;
|
| 35583 |
ranu |
19 |
String createdBy;
|
| 35549 |
ranu |
20 |
ProfitMandiConstants.BULLETIN_TYPE_ENUM bulletinType;
|
|
|
21 |
|
|
|
22 |
public String getTitle() {
|
|
|
23 |
return title;
|
|
|
24 |
}
|
|
|
25 |
|
|
|
26 |
public void setTitle(String title) {
|
|
|
27 |
this.title = title;
|
|
|
28 |
}
|
|
|
29 |
|
|
|
30 |
public String getDescription() {
|
|
|
31 |
return description;
|
|
|
32 |
}
|
|
|
33 |
|
|
|
34 |
public void setDescription(String description) {
|
|
|
35 |
this.description = description;
|
|
|
36 |
}
|
|
|
37 |
|
|
|
38 |
public String getCreatedTime() {
|
|
|
39 |
return createdTime;
|
|
|
40 |
}
|
|
|
41 |
|
|
|
42 |
public void setCreatedTime(String createdTime) {
|
|
|
43 |
this.createdTime = createdTime;
|
|
|
44 |
}
|
|
|
45 |
|
|
|
46 |
public List<CatalogBrief> getCatalogBriefList() {
|
|
|
47 |
return catalogBriefList;
|
|
|
48 |
}
|
|
|
49 |
|
|
|
50 |
public void setCatalogBriefList(List<CatalogBrief> catalogBriefList) {
|
|
|
51 |
this.catalogBriefList = catalogBriefList;
|
|
|
52 |
}
|
|
|
53 |
|
|
|
54 |
public List<PartnerBrief> getPartnerBriefList() {
|
|
|
55 |
return partnerBriefList;
|
|
|
56 |
}
|
|
|
57 |
|
|
|
58 |
public void setPartnerBriefList(List<PartnerBrief> partnerBriefList) {
|
|
|
59 |
this.partnerBriefList = partnerBriefList;
|
|
|
60 |
}
|
|
|
61 |
|
|
|
62 |
public long getOfferId() {
|
|
|
63 |
return offerId;
|
|
|
64 |
}
|
|
|
65 |
|
|
|
66 |
public void setOfferId(long offerId) {
|
|
|
67 |
this.offerId = offerId;
|
|
|
68 |
}
|
|
|
69 |
|
|
|
70 |
public boolean isCatalogOffer() {
|
|
|
71 |
return isCatalogOffer;
|
|
|
72 |
}
|
|
|
73 |
|
|
|
74 |
public void setCatalogOffer(boolean catalogOffer) {
|
|
|
75 |
isCatalogOffer = catalogOffer;
|
|
|
76 |
}
|
|
|
77 |
|
|
|
78 |
public List<Integer> getDocumentIds() {
|
|
|
79 |
return documentIds;
|
|
|
80 |
}
|
|
|
81 |
|
|
|
82 |
public void setDocumentIds(List<Integer> documentIds) {
|
|
|
83 |
this.documentIds = documentIds;
|
|
|
84 |
}
|
|
|
85 |
|
|
|
86 |
public ProfitMandiConstants.BULLETIN_TYPE_ENUM getBulletinType() {
|
|
|
87 |
return bulletinType;
|
|
|
88 |
}
|
|
|
89 |
|
|
|
90 |
public void setBulletinType(ProfitMandiConstants.BULLETIN_TYPE_ENUM bulletinType) {
|
|
|
91 |
this.bulletinType = bulletinType;
|
|
|
92 |
}
|
|
|
93 |
|
|
|
94 |
public LocalDateTime getCreatedAt() {
|
|
|
95 |
return createdAt;
|
|
|
96 |
}
|
|
|
97 |
|
|
|
98 |
public void setCreatedAt(LocalDateTime createdAt) {
|
|
|
99 |
this.createdAt = createdAt;
|
|
|
100 |
}
|
|
|
101 |
|
| 35583 |
ranu |
102 |
public String getCreatedBy() {
|
|
|
103 |
return createdBy;
|
|
|
104 |
}
|
|
|
105 |
|
|
|
106 |
public void setCreatedBy(String createdBy) {
|
|
|
107 |
this.createdBy = createdBy;
|
|
|
108 |
}
|
|
|
109 |
|
| 35549 |
ranu |
110 |
@Override
|
|
|
111 |
public boolean equals(Object o) {
|
|
|
112 |
if (this == o) return true;
|
|
|
113 |
if (o == null || getClass() != o.getClass()) return false;
|
|
|
114 |
BulletinOfferModal that = (BulletinOfferModal) o;
|
| 35583 |
ranu |
115 |
return offerId == that.offerId && isCatalogOffer == that.isCatalogOffer && Objects.equals(title, that.title) && Objects.equals(description, that.description) && Objects.equals(createdTime, that.createdTime) && Objects.equals(documentIds, that.documentIds) && Objects.equals(catalogBriefList, that.catalogBriefList) && Objects.equals(partnerBriefList, that.partnerBriefList) && Objects.equals(createdAt, that.createdAt) && Objects.equals(createdBy, that.createdBy) && bulletinType == that.bulletinType;
|
| 35549 |
ranu |
116 |
}
|
|
|
117 |
|
|
|
118 |
@Override
|
|
|
119 |
public int hashCode() {
|
| 35583 |
ranu |
120 |
return Objects.hash(offerId, title, description, createdTime, documentIds, catalogBriefList, partnerBriefList, isCatalogOffer, createdAt, createdBy, bulletinType);
|
| 35549 |
ranu |
121 |
}
|
|
|
122 |
|
|
|
123 |
@Override
|
|
|
124 |
public String toString() {
|
|
|
125 |
return "BulletinOfferModal{" +
|
|
|
126 |
"offerId=" + offerId +
|
|
|
127 |
", title='" + title + '\'' +
|
|
|
128 |
", description='" + description + '\'' +
|
|
|
129 |
", createdTime='" + createdTime + '\'' +
|
|
|
130 |
", documentIds=" + documentIds +
|
|
|
131 |
", catalogBriefList=" + catalogBriefList +
|
|
|
132 |
", partnerBriefList=" + partnerBriefList +
|
|
|
133 |
", isCatalogOffer=" + isCatalogOffer +
|
|
|
134 |
", createdAt=" + createdAt +
|
|
|
135 |
", bulletinType=" + bulletinType +
|
|
|
136 |
'}';
|
|
|
137 |
}
|
|
|
138 |
|
|
|
139 |
}
|