-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #28 from tukcomCD2024/develop_front
데모 발표 전 중간 병합
- Loading branch information
Showing
42 changed files
with
1,876 additions
and
864 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 15 additions & 15 deletions
30
...whereareu/data/api/DementiaHomeService.kt → .../data/api/dementia/DementiaHomeService.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
package kr.ac.tukorea.whereareu.data.api | ||
|
||
import kr.ac.tukorea.whereareu.data.model.ResponseBody | ||
import kr.ac.tukorea.whereareu.data.model.home.LocationInfo | ||
import kr.ac.tukorea.whereareu.data.model.home.PostLocationInfoResponse | ||
import retrofit2.Response | ||
import retrofit2.http.Body | ||
import retrofit2.http.POST | ||
|
||
interface DementiaHomeService { | ||
@POST("receive-location-info") | ||
suspend fun postLocationInfo( | ||
@Body request: LocationInfo | ||
): Response<PostLocationInfoResponse> | ||
|
||
package kr.ac.tukorea.whereareu.data.api.dementia | ||
|
||
import kr.ac.tukorea.whereareu.data.model.ResponseBody | ||
import kr.ac.tukorea.whereareu.data.model.home.LocationInfo | ||
import kr.ac.tukorea.whereareu.data.model.home.PostLocationInfoResponse | ||
import retrofit2.Response | ||
import retrofit2.http.Body | ||
import retrofit2.http.POST | ||
|
||
interface DementiaHomeService { | ||
@POST("receive-location-info") | ||
suspend fun postLocationInfo( | ||
@Body request: LocationInfo | ||
): Response<PostLocationInfoResponse> | ||
|
||
} |
26 changes: 13 additions & 13 deletions
26
...orea/whereareu/data/api/NokHomeService.kt → .../whereareu/data/api/nok/NokHomeService.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
package kr.ac.tukorea.whereareu.data.api | ||
|
||
import kr.ac.tukorea.whereareu.data.model.ResponseBody | ||
import kr.ac.tukorea.whereareu.data.model.home.GetLocationInfoResponse | ||
import retrofit2.Response | ||
import retrofit2.http.Body | ||
import retrofit2.http.GET | ||
import retrofit2.http.Path | ||
import retrofit2.http.Query | ||
|
||
interface NokHomeService { | ||
@GET("send-live-location-info") | ||
suspend fun getDementiaLocationInfo(@Query("dementiaKey") dementiaKey: String): Response<ResponseBody<GetLocationInfoResponse>> | ||
package kr.ac.tukorea.whereareu.data.api.nok | ||
|
||
import kr.ac.tukorea.whereareu.data.model.ResponseBody | ||
import kr.ac.tukorea.whereareu.data.model.home.GetLocationInfoResponse | ||
import retrofit2.Response | ||
import retrofit2.http.Body | ||
import retrofit2.http.GET | ||
import retrofit2.http.Path | ||
import retrofit2.http.Query | ||
|
||
interface NokHomeService { | ||
@GET("send-live-location-info") | ||
suspend fun getDementiaLocationInfo(@Query("dementiaKey") dementiaKey: String): Response<ResponseBody<GetLocationInfoResponse>> | ||
} |
16 changes: 8 additions & 8 deletions
16
...repository/home/DementiaHomeRepository.kt → ...y/dementia/home/DementiaHomeRepository.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
package kr.ac.tukorea.whereareu.data.repository.home | ||
|
||
import kr.ac.tukorea.whereareu.data.model.home.LocationInfo | ||
import kr.ac.tukorea.whereareu.data.model.home.PostLocationInfoResponse | ||
import kr.ac.tukorea.whereareu.util.network.NetworkResult | ||
|
||
interface DementiaHomeRepository { | ||
suspend fun postLocationInfo(request: LocationInfo): NetworkResult<PostLocationInfoResponse> | ||
package kr.ac.tukorea.whereareu.data.repository.dementia.home | ||
|
||
import kr.ac.tukorea.whereareu.data.model.home.LocationInfo | ||
import kr.ac.tukorea.whereareu.data.model.home.PostLocationInfoResponse | ||
import kr.ac.tukorea.whereareu.util.network.NetworkResult | ||
|
||
interface DementiaHomeRepository { | ||
suspend fun postLocationInfo(request: LocationInfo): NetworkResult<PostLocationInfoResponse> | ||
} |
31 changes: 15 additions & 16 deletions
31
...sitory/home/DementiaHomeRepositoryImpl.kt → ...mentia/home/DementiaHomeRepositoryImpl.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,16 @@ | ||
package kr.ac.tukorea.whereareu.data.repository.home | ||
|
||
import kr.ac.tukorea.whereareu.data.api.DementiaHomeService | ||
import kr.ac.tukorea.whereareu.data.model.ResponseBody | ||
import kr.ac.tukorea.whereareu.data.model.home.LocationInfo | ||
import kr.ac.tukorea.whereareu.data.model.home.PostLocationInfoResponse | ||
import kr.ac.tukorea.whereareu.util.network.NetworkResult | ||
import kr.ac.tukorea.whereareu.util.network.handleApi | ||
import javax.inject.Inject | ||
|
||
class DementiaHomeRepositoryImpl @Inject constructor( | ||
private val api: DementiaHomeService | ||
): DementiaHomeRepository { | ||
override suspend fun postLocationInfo(request: LocationInfo): NetworkResult<PostLocationInfoResponse> { | ||
return handleApi({api.postLocationInfo(request)}) {response: PostLocationInfoResponse -> response} | ||
} | ||
package kr.ac.tukorea.whereareu.data.repository.dementia.home | ||
|
||
import kr.ac.tukorea.whereareu.data.api.dementia.DementiaHomeService | ||
import kr.ac.tukorea.whereareu.data.model.home.LocationInfo | ||
import kr.ac.tukorea.whereareu.data.model.home.PostLocationInfoResponse | ||
import kr.ac.tukorea.whereareu.util.network.NetworkResult | ||
import kr.ac.tukorea.whereareu.util.network.handleApi | ||
import javax.inject.Inject | ||
|
||
class DementiaHomeRepositoryImpl @Inject constructor( | ||
private val api: DementiaHomeService | ||
): DementiaHomeRepository { | ||
override suspend fun postLocationInfo(request: LocationInfo): NetworkResult<PostLocationInfoResponse> { | ||
return handleApi({api.postLocationInfo(request)}) {response: PostLocationInfoResponse -> response} | ||
} | ||
} |
14 changes: 7 additions & 7 deletions
14
...data/repository/home/NokHomeRepository.kt → .../repository/nok/home/NokHomeRepository.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
package kr.ac.tukorea.whereareu.data.repository.home | ||
|
||
import kr.ac.tukorea.whereareu.data.model.home.GetLocationInfoResponse | ||
import kr.ac.tukorea.whereareu.util.network.NetworkResult | ||
|
||
interface NokHomeRepository { | ||
suspend fun getDementiaLocationInfo(dementiaKey: String): NetworkResult<GetLocationInfoResponse> | ||
package kr.ac.tukorea.whereareu.data.repository.nok.home | ||
|
||
import kr.ac.tukorea.whereareu.data.model.home.GetLocationInfoResponse | ||
import kr.ac.tukorea.whereareu.util.network.NetworkResult | ||
|
||
interface NokHomeRepository { | ||
suspend fun getDementiaLocationInfo(dementiaKey: String): NetworkResult<GetLocationInfoResponse> | ||
} |
32 changes: 16 additions & 16 deletions
32
.../repository/home/NokHomeRepositoryImpl.kt → ...ository/nok/home/NokHomeRepositoryImpl.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
package kr.ac.tukorea.whereareu.data.repository.home | ||
|
||
import kr.ac.tukorea.whereareu.data.api.NokHomeService | ||
import kr.ac.tukorea.whereareu.data.model.ResponseBody | ||
import kr.ac.tukorea.whereareu.data.model.home.GetLocationInfoResponse | ||
import kr.ac.tukorea.whereareu.util.network.NetworkResult | ||
import kr.ac.tukorea.whereareu.util.network.handleApi | ||
import javax.inject.Inject | ||
|
||
class NokHomeRepositoryImpl @Inject constructor( | ||
private val api: NokHomeService | ||
): NokHomeRepository{ | ||
override suspend fun getDementiaLocationInfo(dementiaKey: String): NetworkResult<GetLocationInfoResponse> { | ||
return handleApi({api.getDementiaLocationInfo(dementiaKey)}) {response: ResponseBody<GetLocationInfoResponse> -> response.result} | ||
} | ||
|
||
package kr.ac.tukorea.whereareu.data.repository.nok.home | ||
|
||
import kr.ac.tukorea.whereareu.data.api.nok.NokHomeService | ||
import kr.ac.tukorea.whereareu.data.model.ResponseBody | ||
import kr.ac.tukorea.whereareu.data.model.home.GetLocationInfoResponse | ||
import kr.ac.tukorea.whereareu.util.network.NetworkResult | ||
import kr.ac.tukorea.whereareu.util.network.handleApi | ||
import javax.inject.Inject | ||
|
||
class NokHomeRepositoryImpl @Inject constructor( | ||
private val api: NokHomeService | ||
): NokHomeRepository { | ||
override suspend fun getDementiaLocationInfo(dementiaKey: String): NetworkResult<GetLocationInfoResponse> { | ||
return handleApi({api.getDementiaLocationInfo(dementiaKey)}) {response: ResponseBody<GetLocationInfoResponse> -> response.result} | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
frontend/app/src/main/java/kr/ac/tukorea/whereareu/domain/home/MeaningfulPlace.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package kr.ac.tukorea.whereareu.domain.home | ||
|
||
data class MeaningfulPlace( | ||
val name: String, | ||
val address: String | ||
) |
36 changes: 18 additions & 18 deletions
36
...entation/dementia/DementiaHomeFragment.kt → ...ion/dementia/home/DementiaHomeFragment.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
package kr.ac.tukorea.whereareu.presentation.dementia | ||
|
||
import android.content.pm.PackageManager | ||
import android.os.Build | ||
import androidx.core.app.ActivityCompat | ||
import androidx.core.content.ContextCompat | ||
import kr.ac.tukorea.whereareu.R | ||
import kr.ac.tukorea.whereareu.databinding.FragmentHomeBinding | ||
import kr.ac.tukorea.whereareu.presentation.base.BaseFragment | ||
|
||
class DementiaHomeFragment: BaseFragment<FragmentHomeBinding>(R.layout.fragment_home) { | ||
override fun initObserver() { | ||
|
||
} | ||
|
||
override fun initView() { | ||
|
||
} | ||
package kr.ac.tukorea.whereareu.presentation.dementia.home | ||
|
||
import android.content.pm.PackageManager | ||
import android.os.Build | ||
import androidx.core.app.ActivityCompat | ||
import androidx.core.content.ContextCompat | ||
import kr.ac.tukorea.whereareu.R | ||
import kr.ac.tukorea.whereareu.databinding.FragmentHomeBinding | ||
import kr.ac.tukorea.whereareu.presentation.base.BaseFragment | ||
|
||
class DementiaHomeFragment: BaseFragment<FragmentHomeBinding>(R.layout.fragment_home) { | ||
override fun initObserver() { | ||
|
||
} | ||
|
||
override fun initView() { | ||
|
||
} | ||
} |
Oops, something went wrong.