Subversion Repositories SmartDukaan

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
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;
19
    ProfitMandiConstants.BULLETIN_TYPE_ENUM bulletinType;
20
 
21
    public String getTitle() {
22
        return title;
23
    }
24
 
25
    public void setTitle(String title) {
26
        this.title = title;
27
    }
28
 
29
    public String getDescription() {
30
        return description;
31
    }
32
 
33
    public void setDescription(String description) {
34
        this.description = description;
35
    }
36
 
37
    public String getCreatedTime() {
38
        return createdTime;
39
    }
40
 
41
    public void setCreatedTime(String createdTime) {
42
        this.createdTime = createdTime;
43
    }
44
 
45
    public List<CatalogBrief> getCatalogBriefList() {
46
        return catalogBriefList;
47
    }
48
 
49
    public void setCatalogBriefList(List<CatalogBrief> catalogBriefList) {
50
        this.catalogBriefList = catalogBriefList;
51
    }
52
 
53
    public List<PartnerBrief> getPartnerBriefList() {
54
        return partnerBriefList;
55
    }
56
 
57
    public void setPartnerBriefList(List<PartnerBrief> partnerBriefList) {
58
        this.partnerBriefList = partnerBriefList;
59
    }
60
 
61
    public long getOfferId() {
62
        return offerId;
63
    }
64
 
65
    public void setOfferId(long offerId) {
66
        this.offerId = offerId;
67
    }
68
 
69
    public boolean isCatalogOffer() {
70
        return isCatalogOffer;
71
    }
72
 
73
    public void setCatalogOffer(boolean catalogOffer) {
74
        isCatalogOffer = catalogOffer;
75
    }
76
 
77
    public List<Integer> getDocumentIds() {
78
        return documentIds;
79
    }
80
 
81
    public void setDocumentIds(List<Integer> documentIds) {
82
        this.documentIds = documentIds;
83
    }
84
 
85
    public ProfitMandiConstants.BULLETIN_TYPE_ENUM getBulletinType() {
86
        return bulletinType;
87
    }
88
 
89
    public void setBulletinType(ProfitMandiConstants.BULLETIN_TYPE_ENUM bulletinType) {
90
        this.bulletinType = bulletinType;
91
    }
92
 
93
    public LocalDateTime getCreatedAt() {
94
        return createdAt;
95
    }
96
 
97
    public void setCreatedAt(LocalDateTime createdAt) {
98
        this.createdAt = createdAt;
99
    }
100
 
101
    @Override
102
    public boolean equals(Object o) {
103
        if (this == o) return true;
104
        if (o == null || getClass() != o.getClass()) return false;
105
        BulletinOfferModal that = (BulletinOfferModal) o;
106
        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) && bulletinType == that.bulletinType;
107
    }
108
 
109
    @Override
110
    public int hashCode() {
111
        return Objects.hash(offerId, title, description, createdTime, documentIds, catalogBriefList, partnerBriefList, isCatalogOffer, createdAt, bulletinType);
112
    }
113
 
114
    @Override
115
    public String toString() {
116
        return "BulletinOfferModal{" +
117
                "offerId=" + offerId +
118
                ", title='" + title + '\'' +
119
                ", description='" + description + '\'' +
120
                ", createdTime='" + createdTime + '\'' +
121
                ", documentIds=" + documentIds +
122
                ", catalogBriefList=" + catalogBriefList +
123
                ", partnerBriefList=" + partnerBriefList +
124
                ", isCatalogOffer=" + isCatalogOffer +
125
                ", createdAt=" + createdAt +
126
                ", bulletinType=" + bulletinType +
127
                '}';
128
    }
129
 
130
}