Skip to content

Commit

Permalink
feature #13: MyRepositoryImpl
Browse files Browse the repository at this point in the history
  • Loading branch information
hyeeum committed Dec 6, 2024
1 parent fdf4887 commit 7cb7dc7
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package org.sopt.and.data.repositoryimpl

import org.sopt.and.data.datasource.MyDataSource
import org.sopt.and.domain.entity.response.ResponseHobbyEntity
import org.sopt.and.domain.repository.MyRepository
import javax.inject.Inject

class MyRepositoryImpl @Inject constructor(
private val myDataSource: MyDataSource
) : MyRepository {
override suspend fun getHobby(): Result<ResponseHobbyEntity> = runCatching {
myDataSource.getUserHobby().result.toEntity()
}
}

0 comments on commit 7cb7dc7

Please sign in to comment.