mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2025-09-06 00:29:39 +00:00
ResponseParameters renaming to Response
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
package com.github.insanusmokrassar.TelegramBotAPI.requests.abstracts
|
||||
|
||||
import com.github.insanusmokrassar.TelegramBotAPI.types.ResponseParameters
|
||||
import com.github.insanusmokrassar.TelegramBotAPI.types.Response
|
||||
import com.github.insanusmokrassar.TelegramBotAPI.utils.toJsonWithoutNulls
|
||||
import kotlinx.serialization.*
|
||||
import kotlinx.serialization.json.JsonObject
|
||||
@@ -15,6 +15,6 @@ interface Request<T: Any> {
|
||||
fun <T : Any> StringFormat.extractResult(
|
||||
from: String,
|
||||
dataSerializer: KSerializer<T>
|
||||
): ResponseParameters<T> {
|
||||
return parse(ResponseParameters.serializer(dataSerializer), from)
|
||||
): Response<T> {
|
||||
return parse(Response.serializer(dataSerializer), from)
|
||||
}
|
Reference in New Issue
Block a user