diff --git a/push-message-provider-hpk/src/main/kotlin/ru/touchin/push/message/provider/hpk/clients/hms_oauth/response/HmsOauthErrorResponse.kt b/push-message-provider-hpk/src/main/kotlin/ru/touchin/push/message/provider/hpk/clients/hms_oauth/response/HmsOauthErrorResponse.kt new file mode 100644 index 0000000..4bfca26 --- /dev/null +++ b/push-message-provider-hpk/src/main/kotlin/ru/touchin/push/message/provider/hpk/clients/hms_oauth/response/HmsOauthErrorResponse.kt @@ -0,0 +1,7 @@ +package ru.touchin.push.message.provider.hpk.clients.hms_oauth.response + +internal class HmsOauthErrorResponse( + val error: Int, + val subError: Int, + val errorDescription: String, +) diff --git a/push-message-provider-hpk/src/main/kotlin/ru/touchin/push/message/provider/hpk/clients/hms_oauth/response/HmsOauthTokenResponse.kt b/push-message-provider-hpk/src/main/kotlin/ru/touchin/push/message/provider/hpk/clients/hms_oauth/response/HmsOauthTokenResponse.kt new file mode 100644 index 0000000..1ed1b6f --- /dev/null +++ b/push-message-provider-hpk/src/main/kotlin/ru/touchin/push/message/provider/hpk/clients/hms_oauth/response/HmsOauthTokenResponse.kt @@ -0,0 +1,8 @@ +package ru.touchin.push.message.provider.hpk.clients.hms_oauth.response + +internal class HmsOauthTokenResponse( + val tokenType: String, + val accessToken: String, + /** Expiration in seconds. */ + val expiresIn: Long, +)