| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| Comment |
|
| 1.0;1 |
| 1 | package net.spy.digg; | |
| 2 | ||
| 3 | /** | |
| 4 | * A comment event. | |
| 5 | */ | |
| 6 | public interface Comment extends Event { | |
| 7 | ||
| 8 | // <comment date="1177142419" story="1814797" id="6273341" up="1" | |
| 9 | // down="0" replies="0" replyto="6268248" user="mikesbaker"> | |
| 10 | ||
| 11 | /** | |
| 12 | * Get the number of diggs up. | |
| 13 | */ | |
| 14 | int getDiggsUp(); | |
| 15 | ||
| 16 | /** | |
| 17 | * Get the number of diggs down. | |
| 18 | */ | |
| 19 | int getDiggsDown(); | |
| 20 | ||
| 21 | /** | |
| 22 | * Get the ID of the comment to which this comment is in response. | |
| 23 | */ | |
| 24 | Integer getReplyId(); | |
| 25 | ||
| 26 | /** | |
| 27 | * The root comment ID. | |
| 28 | */ | |
| 29 | Integer getRoot(); | |
| 30 | ||
| 31 | /** | |
| 32 | * The level of the comment within the thread. | |
| 33 | */ | |
| 34 | Integer getLevel(); | |
| 35 | ||
| 36 | /** | |
| 37 | * Get the comment text. | |
| 38 | */ | |
| 39 | String getComment(); | |
| 40 | } |