blob: 0eb45074a5eecd3364b90dd976aef1650364fdbc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
package org.fox.ttrss.types;
import java.io.Serializable;
public class GalleryEntry implements Serializable {
public enum GalleryEntryType { TYPE_IMAGE, TYPE_VIDEO }
public String url;
public GalleryEntryType type;
public String coverUrl;
public GalleryEntry() {
//
}
public GalleryEntry(String url, GalleryEntryType type, String coverUrl) {
this.url = url;
this.type = type;
this.coverUrl = coverUrl;
}
public boolean equals(GalleryEntry obj) {
if (obj.url != null && url != null) {
return obj.url.equals(url);
} else {
return super.equals(obj);
}
}
}
|