From afc03aed87d12f24504cfd651625756b162ea786 Mon Sep 17 00:00:00 2001 From: Korna <17145209+Korna@users.noreply.github.com> Date: Mon, 7 Nov 2022 18:06:58 +0300 Subject: [PATCH] Add HMS OAuth DTO's --- .../clients/hms_oauth/response/HmsOauthErrorResponse.kt | 7 +++++++ .../clients/hms_oauth/response/HmsOauthTokenResponse.kt | 8 ++++++++ 2 files changed, 15 insertions(+) create mode 100644 push-message-provider-hpk/src/main/kotlin/ru/touchin/push/message/provider/hpk/clients/hms_oauth/response/HmsOauthErrorResponse.kt create mode 100644 push-message-provider-hpk/src/main/kotlin/ru/touchin/push/message/provider/hpk/clients/hms_oauth/response/HmsOauthTokenResponse.kt 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, +)