-
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.
* feat: 공모 글 작성 ui state 구현 * feat: 로딩 progressbar 생성 * feat: UI 상태에 따른 토스트 메시지 처리 * refactor: 잘못된 입력에 대한 에러 처리 변경
- Loading branch information
1 parent
f2e296a
commit 94d4504
Showing
5 changed files
with
83 additions
and
51 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
24 changes: 24 additions & 0 deletions
24
android/app/src/main/java/com/zzang/chongdae/presentation/view/write/WriteUIState.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,24 @@ | ||
package com.zzang.chongdae.presentation.view.write | ||
|
||
import androidx.annotation.StringRes | ||
|
||
sealed class WriteUIState { | ||
data class Empty( | ||
@StringRes val message: Int, | ||
) : WriteUIState() | ||
|
||
data object Initial : WriteUIState() | ||
|
||
data object Loading : WriteUIState() | ||
|
||
data class InvalidInput( | ||
@StringRes val message: Int, | ||
) : WriteUIState() | ||
|
||
data class Success(val url: String) : WriteUIState() | ||
|
||
data class Error( | ||
@StringRes val message: Int, | ||
val errorMessage: String, | ||
) : WriteUIState() | ||
} |
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