Subversion Repositories SmartDukaan

Rev

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

package com.spice.profitmandi.dao.model;

import java.time.LocalDate;
import java.util.Objects;

public class PrintResourceModel {

    private String title;
    private LocalDate startDate;
    private LocalDate endDate;
    private String imgUrl;
    private String thumbnailUrl;
    private String region;

    public String getTitle() {
        return title;
    }

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

    public LocalDate getStartDate() {
        return startDate;
    }

    public void setStartDate(LocalDate startDate) {
        this.startDate = startDate;
    }

    public LocalDate getEndDate() {
        return endDate;
    }

    public void setEndDate(LocalDate endDate) {
        this.endDate = endDate;
    }

    public String getImgUrl() {
        return imgUrl;
    }

    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl;
    }

    public String getThumbnailUrl() {
        return thumbnailUrl;
    }

    public void setThumbnailUrl(String thumbnailUrl) {
        this.thumbnailUrl = thumbnailUrl;
    }

    public String getRegion() {
        return region;
    }

    public void setRegion(String region) {
        this.region = region;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        PrintResourceModel that = (PrintResourceModel) o;
        return Objects.equals(title, that.title) && Objects.equals(startDate, that.startDate) && Objects.equals(endDate, that.endDate) && Objects.equals(imgUrl, that.imgUrl) && Objects.equals(thumbnailUrl, that.thumbnailUrl) && Objects.equals(region, that.region);
    }

    @Override
    public int hashCode() {
        return Objects.hash(title, startDate, endDate, imgUrl, thumbnailUrl, region);
    }

    @Override
    public String toString() {
        return "PrintResourceModel{" +
                "title='" + title + '\'' +
                ", startDate=" + startDate +
                ", endDate=" + endDate +
                ", imgUrl='" + imgUrl + '\'' +
                ", thumbnailUrl='" + thumbnailUrl + '\'' +
                ", region='" + region + '\'' +
                '}';
    }
}