Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
33443 ranu 1
package com.spice.profitmandi.dao.model;
2
 
3
import java.time.LocalDate;
4
import java.util.Objects;
5
 
6
public class PrintResourceModel {
7
 
8
    private String title;
9
    private LocalDate startDate;
10
    private LocalDate endDate;
11
    private String imgUrl;
33501 ranu 12
    private String thumbnailUrl;
33443 ranu 13
    private String region;
14
 
15
    public String getTitle() {
16
        return title;
17
    }
18
 
19
    public void setTitle(String title) {
20
        this.title = title;
21
    }
22
 
23
    public LocalDate getStartDate() {
24
        return startDate;
25
    }
26
 
27
    public void setStartDate(LocalDate startDate) {
28
        this.startDate = startDate;
29
    }
30
 
31
    public LocalDate getEndDate() {
32
        return endDate;
33
    }
34
 
35
    public void setEndDate(LocalDate endDate) {
36
        this.endDate = endDate;
37
    }
38
 
39
    public String getImgUrl() {
40
        return imgUrl;
41
    }
42
 
43
    public void setImgUrl(String imgUrl) {
44
        this.imgUrl = imgUrl;
45
    }
46
 
33501 ranu 47
    public String getThumbnailUrl() {
48
        return thumbnailUrl;
49
    }
50
 
51
    public void setThumbnailUrl(String thumbnailUrl) {
52
        this.thumbnailUrl = thumbnailUrl;
53
    }
54
 
33443 ranu 55
    public String getRegion() {
56
        return region;
57
    }
58
 
59
    public void setRegion(String region) {
60
        this.region = region;
61
    }
62
 
63
    @Override
64
    public boolean equals(Object o) {
65
        if (this == o) return true;
66
        if (o == null || getClass() != o.getClass()) return false;
67
        PrintResourceModel that = (PrintResourceModel) o;
33501 ranu 68
        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);
33443 ranu 69
    }
70
 
71
    @Override
72
    public int hashCode() {
33501 ranu 73
        return Objects.hash(title, startDate, endDate, imgUrl, thumbnailUrl, region);
33443 ranu 74
    }
75
 
76
    @Override
77
    public String toString() {
78
        return "PrintResourceModel{" +
79
                "title='" + title + '\'' +
80
                ", startDate=" + startDate +
81
                ", endDate=" + endDate +
82
                ", imgUrl='" + imgUrl + '\'' +
33501 ranu 83
                ", thumbnailUrl='" + thumbnailUrl + '\'' +
33443 ranu 84
                ", region='" + region + '\'' +
85
                '}';
86
    }
87
}