From adfd16b9fd31c265f4f543ca11e9ec018ad642b5 Mon Sep 17 00:00:00 2001 From: librarywon Date: Wed, 5 Jul 2023 01:50:52 +0900 Subject: [PATCH] [feat/mypage]: fix responsenamig --- .../fake/FakeMyPageInfoRepository.kt | 91 +------------------ 1 file changed, 4 insertions(+), 87 deletions(-) diff --git a/app/src/main/java/com/teampophory/pophory/data/repository/fake/FakeMyPageInfoRepository.kt b/app/src/main/java/com/teampophory/pophory/data/repository/fake/FakeMyPageInfoRepository.kt index 4468577f..88c5c6ff 100644 --- a/app/src/main/java/com/teampophory/pophory/data/repository/fake/FakeMyPageInfoRepository.kt +++ b/app/src/main/java/com/teampophory/pophory/data/repository/fake/FakeMyPageInfoRepository.kt @@ -1,106 +1,23 @@ package com.teampophory.pophory.data.repository.fake import com.teampophory.pophory.data.repository.MyPageInfoRepository -import com.teampophory.pophory.network.model.MyPageInfoResponse +import com.teampophory.pophory.network.model.MyPageResponse import kotlinx.coroutines.delay class FakeMyPageInfoRepository : MyPageInfoRepository { private val fakeImageUrl = "https://images.unsplash.com/photo-1687023956422-117d5c47029d?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=3432&q=80" - override suspend fun getMyPageInfo(): Result { + override suspend fun getMyPageInfo(): Result { delay(300) return runCatching { - MyPageInfoResponse( + MyPageResponse( "한수아", "HANSUAH", "", 5, listOf( - MyPageInfoResponse.Photo( - 1, - fakeImageUrl, - "인생네컷", - "2023.06.26" - ), - MyPageInfoResponse.Photo( - 2, - fakeImageUrl, - "인생네컷", - "2023.06.26" - ), - MyPageInfoResponse.Photo( - 3, - fakeImageUrl, - "인생네컷", - "2023.06.26" - ), - MyPageInfoResponse.Photo( - 4, - fakeImageUrl, - "인생네컷", - "2023.06.26" - ), - MyPageInfoResponse.Photo( - 5, - fakeImageUrl, - "인생네컷", - "2023.06.26" - ), - MyPageInfoResponse.Photo( - 5, - fakeImageUrl, - "인생네컷", - "2023.06.26" - ), - MyPageInfoResponse.Photo( - 5, - fakeImageUrl, - "인생네컷", - "2023.06.26" - ), - MyPageInfoResponse.Photo( - 5, - fakeImageUrl, - "인생네컷", - "2023.06.26" - ), - MyPageInfoResponse.Photo( - 5, - fakeImageUrl, - "인생네컷", - "2023.06.26" - ), - MyPageInfoResponse.Photo( - 5, - fakeImageUrl, - "인생네컷", - "2023.06.26" - ), - MyPageInfoResponse.Photo( - 5, - fakeImageUrl, - "인생네컷", - "2023.06.26" - ), - MyPageInfoResponse.Photo( - 5, - fakeImageUrl, - "인생네컷", - "2023.06.26" - ), - MyPageInfoResponse.Photo( - 5, - fakeImageUrl, - "인생네컷", - "2023.06.26" - ), - MyPageInfoResponse.Photo( - 5, - fakeImageUrl, - "인생네컷", - "2023.06.26" - ) + ) ) }