Subversion Repositories SmartDukaan

Rev

Rev 35549 | Blame | Compare with Previous | Last modification | View Log | RSS feed

package com.spice.profitmandi.dao.model;

import com.spice.profitmandi.common.model.ProfitMandiConstants;

import java.time.LocalDateTime;
import java.util.List;
import java.util.Objects;

public class BulletinOfferModal {
    long offerId;
    String title;
    String description;
    String createdTime;
    List<Integer> documentIds;
    List<CatalogBrief> catalogBriefList;
    List<PartnerBrief> partnerBriefList;
    boolean isCatalogOffer;
    LocalDateTime createdAt;
    String createdBy;
    ProfitMandiConstants.BULLETIN_TYPE_ENUM bulletinType;

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(String createdTime) {
        this.createdTime = createdTime;
    }

    public List<CatalogBrief> getCatalogBriefList() {
        return catalogBriefList;
    }

    public void setCatalogBriefList(List<CatalogBrief> catalogBriefList) {
        this.catalogBriefList = catalogBriefList;
    }

    public List<PartnerBrief> getPartnerBriefList() {
        return partnerBriefList;
    }

    public void setPartnerBriefList(List<PartnerBrief> partnerBriefList) {
        this.partnerBriefList = partnerBriefList;
    }

    public long getOfferId() {
        return offerId;
    }

    public void setOfferId(long offerId) {
        this.offerId = offerId;
    }

    public boolean isCatalogOffer() {
        return isCatalogOffer;
    }

    public void setCatalogOffer(boolean catalogOffer) {
        isCatalogOffer = catalogOffer;
    }

    public List<Integer> getDocumentIds() {
        return documentIds;
    }

    public void setDocumentIds(List<Integer> documentIds) {
        this.documentIds = documentIds;
    }

    public ProfitMandiConstants.BULLETIN_TYPE_ENUM getBulletinType() {
        return bulletinType;
    }

    public void setBulletinType(ProfitMandiConstants.BULLETIN_TYPE_ENUM bulletinType) {
        this.bulletinType = bulletinType;
    }

    public LocalDateTime getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(LocalDateTime createdAt) {
        this.createdAt = createdAt;
    }

    public String getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(String createdBy) {
        this.createdBy = createdBy;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        BulletinOfferModal that = (BulletinOfferModal) o;
        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;
    }

    @Override
    public int hashCode() {
        return Objects.hash(offerId, title, description, createdTime, documentIds, catalogBriefList, partnerBriefList, isCatalogOffer, createdAt, createdBy, bulletinType);
    }

    @Override
    public String toString() {
        return "BulletinOfferModal{" +
                "offerId=" + offerId +
                ", title='" + title + '\'' +
                ", description='" + description + '\'' +
                ", createdTime='" + createdTime + '\'' +
                ", documentIds=" + documentIds +
                ", catalogBriefList=" + catalogBriefList +
                ", partnerBriefList=" + partnerBriefList +
                ", isCatalogOffer=" + isCatalogOffer +
                ", createdAt=" + createdAt +
                ", bulletinType=" + bulletinType +
                '}';
    }

}