generated from AND-SOPT-ANDROID/and-sopt-android-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[feat/#10] response body가 없는 경우 Response 객체를 이용하여 서버통신 상태를 검사합니다.
- Loading branch information
Showing
6 changed files
with
28 additions
and
20 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
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
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
10 changes: 4 additions & 6 deletions
10
app/src/main/java/org/sopt/and/presentation/ui/main/screen/UserInfoUpdateState.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,10 +1,8 @@ | ||
package org.sopt.and.presentation.ui.main.screen | ||
|
||
import org.sopt.and.domain.model.Hobby | ||
|
||
sealed class UserInfoUpdateState { | ||
data object Idle: UserInfoUpdateState() | ||
data object Loading: UserInfoUpdateState() | ||
data object Success: UserInfoUpdateState() | ||
data class Failure(val errorMessage: String): UserInfoUpdateState() | ||
data object Idle : UserInfoUpdateState() | ||
data object Loading : UserInfoUpdateState() | ||
data object Success : UserInfoUpdateState() | ||
data class Failure(val errorMessage: String) : UserInfoUpdateState() | ||
} |