1
0
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:
2019-02-05 12:40:29 +08:00
parent 6f04baea4e
commit 206b3fd3e4
6 changed files with 17 additions and 10 deletions

View File

@@ -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)
}