Skip to content

Commit

Permalink
[feat/#15] 서버통신의 상태를 담을 State를 정의합니다.
Browse files Browse the repository at this point in the history
  • Loading branch information
SYAAINN committed Nov 28, 2024
1 parent ade56e6 commit 90de28c
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
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()
}
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()
}

0 comments on commit 90de28c

Please sign in to comment.