-
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.
- Loading branch information
Showing
6 changed files
with
75 additions
and
3 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
15 changes: 15 additions & 0 deletions
15
...main/kotlin/backend/itracker/alarm/service/event/SuccessReservationOfNotificationEvent.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,15 @@ | ||
package backend.itracker.alarm.service.event | ||
|
||
import java.time.LocalDateTime | ||
|
||
|
||
interface SuccessReservationOfNotificationEvent { | ||
|
||
fun reservationTime(): LocalDateTime | ||
|
||
fun successMessageCount(): Int | ||
|
||
fun point(): Float | ||
|
||
fun balance(): Float | ||
} |
28 changes: 28 additions & 0 deletions
28
...tlin/backend/itracker/schedule/infra/notification/event/MessageReservationSuccessEvent.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,28 @@ | ||
package backend.itracker.schedule.infra.notification.event | ||
|
||
import backend.itracker.alarm.service.event.SuccessReservationOfNotificationEvent | ||
import java.time.LocalDateTime | ||
|
||
data class MessageReservationSuccessEvent( | ||
val reservationTime: LocalDateTime, | ||
val successMessageCount: Int, | ||
val point: Float, | ||
val balance: Float, | ||
) : SuccessReservationOfNotificationEvent { | ||
|
||
override fun reservationTime(): LocalDateTime { | ||
return reservationTime | ||
} | ||
|
||
override fun successMessageCount(): Int { | ||
return successMessageCount | ||
} | ||
|
||
override fun point(): Float { | ||
return point | ||
} | ||
|
||
override fun balance(): Float { | ||
return balance | ||
} | ||
} |
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