|
7 | 7 |
|
8 | 8 | import com.proxerme.library.interfaces.IdItem; |
9 | 9 | import com.proxerme.library.interfaces.ImageItem; |
| 10 | +import com.proxerme.library.interfaces.TimeItem; |
10 | 11 | import com.proxerme.library.parameters.CommentStateParameter.CommentState; |
11 | 12 | import com.squareup.moshi.Json; |
12 | 13 |
|
|
15 | 16 | * |
16 | 17 | * @author Desnoo |
17 | 18 | */ |
18 | | -public class Comment implements Parcelable, IdItem, ImageItem { |
| 19 | +public class Comment implements Parcelable, IdItem, ImageItem, TimeItem { |
19 | 20 |
|
20 | 21 | public static final Creator<Comment> CREATOR = new Creator<Comment>() { |
21 | 22 | @Override |
@@ -65,19 +66,19 @@ private Comment() { |
65 | 66 | /** |
66 | 67 | * The constructor. |
67 | 68 | * |
68 | | - * @param id The comment id. |
69 | | - * @param entryId The entry id. |
70 | | - * @param userId The user id. |
71 | | - * @param type The comment type. |
72 | | - * @param state The comment state type {@link CommentState} |
| 69 | + * @param id The comment id. |
| 70 | + * @param entryId The entry id. |
| 71 | + * @param userId The user id. |
| 72 | + * @param type The comment type. |
| 73 | + * @param state The comment state type {@link CommentState} |
73 | 74 | * @param ratingDetails The rating details. |
74 | | - * @param comment The comment text. |
75 | | - * @param rating The rating value. |
76 | | - * @param episode The highest episode the user watched. |
77 | | - * @param helpfulVotes The number of users that voted this comment up. |
78 | | - * @param time The comment creation time. |
79 | | - * @param username The name of the user. |
80 | | - * @param imageId The image id. |
| 75 | + * @param comment The comment text. |
| 76 | + * @param rating The rating value. |
| 77 | + * @param episode The highest episode the user watched. |
| 78 | + * @param helpfulVotes The number of users that voted this comment up. |
| 79 | + * @param time The comment creation time. |
| 80 | + * @param username The name of the user. |
| 81 | + * @param imageId The image id. |
81 | 82 | */ |
82 | 83 | public Comment(@NonNull String id, @NonNull String entryId, @NonNull String userId, |
83 | 84 | @NonNull String type, @CommentState int state, |
@@ -222,6 +223,7 @@ public int getHelpfulVotes() { |
222 | 223 | * |
223 | 224 | * @return The Time. |
224 | 225 | **/ |
| 226 | + @Override |
225 | 227 | public long getTime() { |
226 | 228 | return time; |
227 | 229 | } |
|
0 commit comments