mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-11-26 03:58:44 +00:00
temporarily change request id main type to ushort
This commit is contained in:
parent
affa2a3a57
commit
1a1fd926dd
@ -7,8 +7,9 @@ import kotlin.random.Random
|
|||||||
@Serializable
|
@Serializable
|
||||||
@JvmInline
|
@JvmInline
|
||||||
value class RequestId(
|
value class RequestId(
|
||||||
val int: Int
|
val uShort: UShort
|
||||||
) {
|
) {
|
||||||
|
constructor(int: Int) : this(int.toUShort())
|
||||||
companion object {
|
companion object {
|
||||||
fun random() = RequestId(Random.nextInt())
|
fun random() = RequestId(Random.nextInt())
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user