File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/commonMain/kotlin/net/pearx/kpastebin/model Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import net.pearx.kpastebin.internal.XML_PROPERTY_REGEX
6
6
/* *
7
7
* A detailed Pastebin paste information.
8
8
*/
9
+ @ExperimentalUnsignedTypes
9
10
public data class PasteDetails (
10
11
/* * Paste key. */
11
12
val key : String ,
@@ -16,7 +17,7 @@ public data class PasteDetails(
16
17
/* * Paste size in bytes. */
17
18
val size : Int ,
18
19
/* * Paste expiration date in Unix time format. */
19
- val expireDate : Int ,
20
+ val expireDate : ULong ,
20
21
/* * Paste privacy status. */
21
22
val privacy : Privacy ,
22
23
/* * Paste syntax highlighting language in a user-readable format (e.g., Kotlin or C#). */
@@ -40,7 +41,7 @@ public data class PasteDetails(
40
41
map.getValue(" date" ).toInt(),
41
42
map.getValue(" title" ),
42
43
map.getValue(" size" ).toInt(),
43
- map.getValue(" expire_date" ).toInt (),
44
+ map.getValue(" expire_date" ).toULong (),
44
45
Privacy .values()[map.getValue(" private" ).toInt()],
45
46
map.getValue(" format_long" ),
46
47
map.getValue(" format_short" ),
You can’t perform that action at this time.
0 commit comments