Skip to content

Commit 0720b6e

Browse files
chore: add response entry with date time
1 parent 5bac204 commit 0720b6e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/main/kotlin/infrastructure/api/util/ApiResponses.kt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,13 @@ object ApiResponses {
1919
@Serializable
2020
data class ResponseEntry<out T>(val entry: T, val url: String)
2121

22+
/**
23+
* Class that represents an [entry] returned as response by an API.
24+
* Each entry is associated with its [date].
25+
*/
26+
@Serializable
27+
data class ResponseTimedEntry<out T>(val entry: T, val date: String)
28+
2229
/**
2330
* Class that represents a list of [entries] returned as response to an API request.
2431
* As the REST API best-practise recommend it is included also the [total] number of the entries.

0 commit comments

Comments
 (0)