| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| GalleryPhoto |
|
| 1.0;1 |
| 1 | package net.spy.digg; | |
| 2 | ||
| 3 | import java.net.URL; | |
| 4 | ||
| 5 | /** | |
| 6 | * A gallery. | |
| 7 | */ | |
| 8 | public interface GalleryPhoto { | |
| 9 | ||
| 10 | /** | |
| 11 | * Get the ID of this image. | |
| 12 | */ | |
| 13 | int getId(); | |
| 14 | ||
| 15 | /** | |
| 16 | * Get the date this image was submitted. | |
| 17 | */ | |
| 18 | long getSubmitTimestamp(); | |
| 19 | ||
| 20 | /** | |
| 21 | * Get the number of comments on this image. | |
| 22 | */ | |
| 23 | int getNumComments(); | |
| 24 | ||
| 25 | /** | |
| 26 | * Get the URL to the image itself. | |
| 27 | */ | |
| 28 | URL getImgSrc(); | |
| 29 | ||
| 30 | /** | |
| 31 | * Get the URL to the page containing this image. | |
| 32 | */ | |
| 33 | URL getImgHref(); | |
| 34 | ||
| 35 | /** | |
| 36 | * Get the title of this image. | |
| 37 | */ | |
| 38 | String getTitle(); | |
| 39 | ||
| 40 | /** | |
| 41 | * Get the User who created this image. | |
| 42 | */ | |
| 43 | User getUser(); | |
| 44 | } |