Subversion Repositories SmartDukaan

Rev

Rev 21545 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 21545 Rev 25380
Line 1... Line 1...
1
package com.spice.profitmandi.dao.model;
1
package com.spice.profitmandi.dao.model;
2
 
2
 
3
public class MediaPojo {
3
public class MediaPojo {
4
	private String title;
4
	private String title;
5
	private String url;
5
	private String url;
-
 
6
	private String imageData;
-
 
7
 
-
 
8
	public MediaPojo() {
-
 
9
 
-
 
10
	}
-
 
11
 
-
 
12
	public MediaPojo(String title, String imageData) {
-
 
13
		this.title = title;
-
 
14
		this.imageData = imageData;
-
 
15
	}
6
	
16
	
7
	
-
 
8
	public MediaPojo(String title, String url) {
17
	public MediaPojo(String title, String url, String imageData) {
9
		super();
-
 
10
		this.title = title;
18
		this.title = title;
11
		this.url = url;
19
		this.imageData = imageData;
-
 
20
	}
-
 
21
 
-
 
22
	public String getImageData() {
-
 
23
		return imageData;
-
 
24
	}
-
 
25
 
-
 
26
	public void setImageData(String imageData) {
-
 
27
		this.imageData = imageData;
12
	}
28
	}
-
 
29
 
-
 
30
	@Override
-
 
31
	public int hashCode() {
-
 
32
		final int prime = 31;
-
 
33
		int result = 1;
-
 
34
		result = prime * result + ((imageData == null) ? 0 : imageData.hashCode());
-
 
35
		result = prime * result + ((title == null) ? 0 : title.hashCode());
-
 
36
		result = prime * result + ((url == null) ? 0 : url.hashCode());
-
 
37
		return result;
-
 
38
	}
-
 
39
 
-
 
40
	@Override
-
 
41
	public boolean equals(Object obj) {
-
 
42
		if (this == obj)
-
 
43
			return true;
-
 
44
		if (obj == null)
-
 
45
			return false;
-
 
46
		if (getClass() != obj.getClass())
-
 
47
			return false;
-
 
48
		MediaPojo other = (MediaPojo) obj;
-
 
49
		if (imageData == null) {
-
 
50
			if (other.imageData != null)
-
 
51
				return false;
-
 
52
		} else if (!imageData.equals(other.imageData))
-
 
53
			return false;
-
 
54
		if (title == null) {
-
 
55
			if (other.title != null)
-
 
56
				return false;
-
 
57
		} else if (!title.equals(other.title))
-
 
58
			return false;
-
 
59
		if (url == null) {
-
 
60
			if (other.url != null)
-
 
61
				return false;
-
 
62
		} else if (!url.equals(other.url))
-
 
63
			return false;
-
 
64
		return true;
-
 
65
	}
-
 
66
 
-
 
67
	@Override
-
 
68
	public String toString() {
-
 
69
		return "MediaPojo [title=" + title + ", url=" + url + ", imageData=" + imageData + "]";
-
 
70
	}
-
 
71
 
-
 
72
 
13
	public String getTitle() {
73
	public String getTitle() {
14
		return title;
74
		return title;
15
	}
75
	}
-
 
76
 
16
	public void setTitle(String title) {
77
	public void setTitle(String title) {
17
		this.title = title;
78
		this.title = title;
18
	}
79
	}
-
 
80
 
19
	public String getUrl() {
81
	public String getUrl() {
20
		return url;
82
		return url;
21
	}
83
	}
-
 
84
 
22
	public void setUrl(String url) {
85
	public void setUrl(String url) {
23
		this.url = url;
86
		this.url = url;
24
	}
87
	}
25
}
88
}
26
 
-