Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
35346 ranu 1
package com.spice.profitmandi.dao.model;
2
 
3
import java.util.Objects;
4
 
5
public class VideoUrlPojo {
6
 
7
    private int catalogId;
8
    private String url;
9
 
10
    public VideoUrlPojo() {
11
    }
12
 
13
    public VideoUrlPojo(int catalogId, String url) {
14
        this.catalogId = catalogId;
15
        this.url = url;
16
    }
17
 
18
    public int getCatalogId() {
19
        return catalogId;
20
    }
21
 
22
    public void setCatalogId(int catalogId) {
23
        this.catalogId = catalogId;
24
    }
25
 
26
    public String getUrl() {
27
        return url;
28
    }
29
 
30
    public void setUrl(String url) {
31
        this.url = url;
32
    }
33
 
34
 
35
    @Override
36
    public boolean equals(Object o) {
37
        if (this == o) return true;
38
        if (o == null || getClass() != o.getClass()) return false;
39
        VideoUrlPojo videoPojo = (VideoUrlPojo) o;
40
        return catalogId == videoPojo.catalogId && Objects.equals(url, videoPojo.url);
41
    }
42
 
43
    @Override
44
    public int hashCode() {
45
        return Objects.hash(catalogId, url);
46
    }
47
 
48
    @Override
49
    public String toString() {
50
        return "VideoPojo{" +
51
                "catalogId=" + catalogId +
52
                ", url='" + url + '\'' +
53
                '}';
54
    }
55
}