generated from SmartOperatingBlock/kotlin-template-project
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add tracking information api result dto
- Loading branch information
1 parent
7657743
commit 7b2fc86
Showing
1 changed file
with
35 additions
and
0 deletions.
There are no files selected for viewing
35 changes: 35 additions & 0 deletions
35
src/main/kotlin/application/presenter/external/model/TrackingInfoResultDto.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,35 @@ | ||
/* | ||
* Copyright (c) 2023. Smart Operating Block | ||
* | ||
* Use of this source code is governed by an MIT-style | ||
* license that can be found in the LICENSE file or at | ||
* https://opensource.org/licenses/MIT. | ||
*/ | ||
|
||
package application.presenter.external.model | ||
|
||
import kotlinx.serialization.Serializable | ||
|
||
/** | ||
* It represents the result returned by external staff tracking system, and it models tracking information of a | ||
* health professional. The information returned are: [dateTime], [roomId], [healthProfessionalId] and [trackingType]. | ||
*/ | ||
@Serializable | ||
data class TrackingInfoResultDto( | ||
val dateTime: String, | ||
val roomId: String, | ||
val healthProfessionalId: String, | ||
val trackingType: TrackingTypeResultDto, | ||
) | ||
|
||
/** | ||
* It represents the [TrackingInfoResultDto] types. | ||
*/ | ||
@Serializable | ||
enum class TrackingTypeResultDto { | ||
/** Enter a room. */ | ||
ENTER, | ||
|
||
/** Exit from a room. */ | ||
EXIT, | ||
} |