-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' of https://github.com/Team-Umbba/Umbba-Android …
…into feat/#1
- Loading branch information
Showing
17 changed files
with
65 additions
and
65 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
2 changes: 1 addition & 1 deletion
2
.../umbba_android/ExampleInstrumentedTest.kt → .../umbba_android/ExampleInstrumentedTest.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
13 changes: 0 additions & 13 deletions
13
app/src/main/java/com/example/umbba_android/data/datasource/ExampleDateSource.kt
This file was deleted.
Oops, something went wrong.
14 changes: 0 additions & 14 deletions
14
app/src/main/java/com/example/umbba_android/data/repository/ExampleRepositoryImpl.kt
This file was deleted.
Oops, something went wrong.
15 changes: 0 additions & 15 deletions
15
app/src/main/java/com/example/umbba_android/data/service/ExampleService.kt
This file was deleted.
Oops, something went wrong.
9 changes: 0 additions & 9 deletions
9
app/src/main/java/com/example/umbba_android/domain/repository/ExampleRepository.kt
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
...com/example/umbba_android/MainActivity.kt → ...va/com/sopt/umbba_android/MainActivity.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
13 changes: 13 additions & 0 deletions
13
app/src/main/java/com/sopt/umbba_android/data/datasource/ExampleDateSource.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,13 @@ | ||
package com.sopt.umbba_android.data.datasource | ||
|
||
import com.sopt.umbba_android.data.service.ExampleService | ||
import com.sopt.umbba_android.data.model.request.ExampleRequestDto | ||
import com.sopt.umbba_android.data.model.response.ExampleResponseDto | ||
import com.sopt.umbba_android.data.model.response.wrapper.BaseResponse | ||
|
||
class ExampleDateSource( | ||
private val exampleService: ExampleService | ||
) { | ||
suspend fun postExample(exampleRequestDto: ExampleRequestDto): BaseResponse<ExampleResponseDto> = | ||
exampleService.postExample(exampleRequestDto) | ||
} |
2 changes: 1 addition & 1 deletion
2
...d/data/model/request/ExampleRequestDto.kt → ...d/data/model/request/ExampleRequestDto.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
2 changes: 1 addition & 1 deletion
2
...data/model/response/ExampleResponseDto.kt → ...data/model/response/ExampleResponseDto.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
2 changes: 1 addition & 1 deletion
2
...ta/model/response/wrapper/BaseResponse.kt → ...ta/model/response/wrapper/BaseResponse.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
14 changes: 14 additions & 0 deletions
14
app/src/main/java/com/sopt/umbba_android/data/repository/ExampleRepositoryImpl.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,14 @@ | ||
package com.sopt.umbba_android.data.repository | ||
|
||
import com.sopt.umbba_android.data.datasource.ExampleDateSource | ||
import com.sopt.umbba_android.data.model.request.ExampleRequestDto | ||
import com.sopt.umbba_android.data.model.response.ExampleResponseDto | ||
import com.sopt.umbba_android.data.model.response.wrapper.BaseResponse | ||
import com.sopt.umbba_android.domain.repository.ExampleRepository | ||
|
||
class ExampleRepositoryImpl( | ||
private val exampleDateSource: ExampleDateSource | ||
) : ExampleRepository { | ||
override suspend fun postExample(exampleRequestDto: ExampleRequestDto): Result<BaseResponse<ExampleResponseDto>> = | ||
kotlin.runCatching { exampleDateSource.postExample(exampleRequestDto) } | ||
} |
15 changes: 15 additions & 0 deletions
15
app/src/main/java/com/sopt/umbba_android/data/service/ExampleService.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,15 @@ | ||
package com.sopt.umbba_android.data.service | ||
|
||
import com.sopt.umbba_android.data.model.request.ExampleRequestDto | ||
import com.sopt.umbba_android.data.model.response.ExampleResponseDto | ||
import com.sopt.umbba_android.data.model.response.wrapper.BaseResponse | ||
import retrofit2.http.Body | ||
import retrofit2.http.POST | ||
|
||
interface ExampleService { | ||
// 예시 API | ||
@POST("api/example") | ||
suspend fun postExample( | ||
@Body request: ExampleRequestDto | ||
): BaseResponse<ExampleResponseDto> | ||
} |
9 changes: 9 additions & 0 deletions
9
app/src/main/java/com/sopt/umbba_android/domain/repository/ExampleRepository.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,9 @@ | ||
package com.sopt.umbba_android.domain.repository | ||
|
||
import com.sopt.umbba_android.data.model.request.ExampleRequestDto | ||
import com.sopt.umbba_android.data.model.response.ExampleResponseDto | ||
import com.sopt.umbba_android.data.model.response.wrapper.BaseResponse | ||
|
||
interface ExampleRepository { | ||
suspend fun postExample(exampleRequestDto: ExampleRequestDto): Result<BaseResponse<ExampleResponseDto>> | ||
} |
2 changes: 1 addition & 1 deletion
2
...a_android/util/binding/BindingActivity.kt → ...a_android/util/binding/BindingActivity.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
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
2 changes: 1 addition & 1 deletion
2
.../example/umbba_android/ExampleUnitTest.kt → ...com/sopt/umbba_android/ExampleUnitTest.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,4 +1,4 @@ | ||
package com.example.umbba_android | ||
package com.sopt.umbba_android | ||
|
||
import org.junit.Test | ||
|
||
|