-
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/#15] 서버통신의 상태를 담을 State를 정의합니다.
- Loading branch information
Showing
2 changed files
with
18 additions
and
0 deletions.
There are no files selected for viewing
10 changes: 10 additions & 0 deletions
10
app/src/main/java/com/sopt/korailtalk/presentation/ui/payment/LPointState.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,10 @@ | ||
package com.sopt.korailtalk.presentation.ui.payment | ||
|
||
import com.sopt.korailtalk.domain.model.LPoint | ||
|
||
sealed class LPointState { | ||
data object Idle: LPointState() | ||
data object Loading: LPointState() | ||
data class Success(val data: LPoint): LPointState() | ||
data class Failure(val message: String): LPointState() | ||
} |
8 changes: 8 additions & 0 deletions
8
app/src/main/java/com/sopt/korailtalk/presentation/ui/payment/TicketBuyingState.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,8 @@ | ||
package com.sopt.korailtalk.presentation.ui.payment | ||
|
||
sealed class TicketBuyingState { | ||
data object Idle: TicketBuyingState() | ||
data object Loading: TicketBuyingState() | ||
data object Success: TicketBuyingState() | ||
data class Failure(val message: String): TicketBuyingState() | ||
} |