Skip to content

Commit

Permalink
✨ :: Event 구현
Browse files Browse the repository at this point in the history
  • Loading branch information
Cjsghkd committed Sep 8, 2023
1 parent 84901c5 commit a84ccb7
Showing 1 changed file with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package com.msg.presentation.viewmodel.util

sealed class Event<out T>(val data: T? = null) {
object Loading : Event<Nothing>()
class Success<T>(data: T? = null) : Event<T>(data = data)
object BadRequest : Event<Nothing>()
object Unauthorized : Event<Nothing>()
object ForBidden : Event<Nothing>()
object NotFound : Event<Nothing>()
object NotAcceptable : Event<Nothing>()
object TimeOut : Event<Nothing>()
object Conflict : Event<Nothing>()
object Server : Event<Nothing>()
object UnKnown : Event<Nothing>()
}

0 comments on commit a84ccb7

Please sign in to comment.