From ae616930c4659c048573d296b54cd2eca1ea4634 Mon Sep 17 00:00:00 2001 From: hangunhee39 Date: Thu, 18 Jan 2024 13:29:28 +0900 Subject: [PATCH] feat : TemporaryToken (dto) --- .../dto/auth/response/TemporaryTokenResponseDto.kt | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 frontend/ARchive/app/src/main/java/com/droidblossom/archive/data/dto/auth/response/TemporaryTokenResponseDto.kt diff --git a/frontend/ARchive/app/src/main/java/com/droidblossom/archive/data/dto/auth/response/TemporaryTokenResponseDto.kt b/frontend/ARchive/app/src/main/java/com/droidblossom/archive/data/dto/auth/response/TemporaryTokenResponseDto.kt new file mode 100644 index 000000000..278201b48 --- /dev/null +++ b/frontend/ARchive/app/src/main/java/com/droidblossom/archive/data/dto/auth/response/TemporaryTokenResponseDto.kt @@ -0,0 +1,13 @@ +package com.droidblossom.archive.data.dto.auth.response + +import com.droidblossom.archive.domain.model.auth.TemporaryToken + +data class TemporaryTokenResponseDto( + val expiresIn: String, + val temporaryAccessToken: String +) { + fun toModel() = TemporaryToken( + expiresIn = this.expiresIn, + temporaryAccessToken = this.temporaryAccessToken + ) +} \ No newline at end of file