Skip to content

Commit

Permalink
chore: add tracking information api result dto
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreaGiulianelli committed May 18, 2023
1 parent 7657743 commit 7b2fc86
Showing 1 changed file with 35 additions and 0 deletions.
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,
}

0 comments on commit 7b2fc86

Please sign in to comment.