| 1 | |
package net.spy.digg.parsers; |
| 2 | |
|
| 3 | |
import java.io.Serializable; |
| 4 | |
|
| 5 | |
import net.spy.digg.Thumbnail; |
| 6 | |
|
| 7 | |
|
| 8 | |
|
| 9 | |
|
| 10 | |
class ThumbnailImpl implements Thumbnail, Serializable { |
| 11 | |
|
| 12 | |
private final int height; |
| 13 | |
private final int width; |
| 14 | |
private final String contentType; |
| 15 | |
private final int tnWidth; |
| 16 | |
private final int tnHeight; |
| 17 | |
private final String url; |
| 18 | |
|
| 19 | |
public ThumbnailImpl(String url, String contentType, int width, int height, |
| 20 | |
int tnWidth, int tnHeight) { |
| 21 | 132 | super(); |
| 22 | 132 | this.url = url; |
| 23 | 132 | this.contentType = contentType; |
| 24 | 132 | this.height = height; |
| 25 | 132 | this.width = width; |
| 26 | 132 | this.tnWidth = tnWidth; |
| 27 | 132 | this.tnHeight = tnHeight; |
| 28 | 132 | } |
| 29 | |
|
| 30 | |
public int getHeight() { |
| 31 | 9 | return height; |
| 32 | |
} |
| 33 | |
public int getWidth() { |
| 34 | 9 | return width; |
| 35 | |
} |
| 36 | |
public String getContentType() { |
| 37 | 9 | return contentType; |
| 38 | |
} |
| 39 | |
public int getTnWidth() { |
| 40 | 9 | return tnWidth; |
| 41 | |
} |
| 42 | |
public int getTnHeight() { |
| 43 | 9 | return tnHeight; |
| 44 | |
} |
| 45 | |
public String getURL() { |
| 46 | 12 | return url; |
| 47 | |
} |
| 48 | |
|
| 49 | |
} |