Skip to content

Commit 6901309

Browse files
giacomoaccursiandrea-acampora
authored andcommitted
chore: now reportIntegration parameter is named additionalData
1 parent bc25d9e commit 6901309

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

src/main/kotlin/application/presenter/api/report/SurgeryReportIntegrationDto.kt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,31 +8,31 @@
88

99
package application.presenter.api.report
1010

11-
import entity.surgeryreport.ReportIntegration
11+
import entity.surgeryreport.AdditionalData
1212
import entity.surgeryreport.SurgeryReportIntegration
1313
import kotlinx.serialization.Serializable
1414

1515
/**
1616
* The Dto for surgery report integration.
17-
* @param reportIntegration the integration of the report.
17+
* @param additionalData the integration of the report.
1818
*/
1919
@Serializable
2020
data class SurgeryReportIntegrationDto(
21-
val reportIntegration: String,
21+
val additionalData: String,
2222
)
2323

2424
/**
2525
* Extension function used to convert [SurgeryReportIntegrationDto] to [SurgeryReportIntegration].
2626
*/
2727
fun SurgeryReportIntegrationDto.toSurgeryReportIntegration(): SurgeryReportIntegration =
2828
SurgeryReportIntegration(
29-
ReportIntegration(this.reportIntegration),
29+
AdditionalData(this.additionalData),
3030
)
3131

3232
/**
3333
* Extension function used to convert [SurgeryReportIntegration] to [SurgeryReportIntegrationDto].
3434
*/
35-
fun SurgeryReportIntegration.toSurgeryReportIngrationDto(): SurgeryReportIntegrationDto =
35+
fun SurgeryReportIntegration.toSurgeryReportIntegrationDto(): SurgeryReportIntegrationDto =
3636
SurgeryReportIntegrationDto(
37-
this.reportIntegration.text,
37+
this.additionalData.text,
3838
)

src/main/kotlin/entity/surgeryreport/SurgeryReportIntegration.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,16 @@ package entity.surgeryreport
1010

1111
/**
1212
* Models the surgery report integration.
13-
* @param reportIntegration the integration of the report.
13+
* @param additionalData the integration of the report.
1414
*/
1515
data class SurgeryReportIntegration(
16-
val reportIntegration: ReportIntegration,
16+
val additionalData: AdditionalData,
1717
)
1818

1919
/**
2020
* The integration of the report.
2121
* @param text the text of the integration.
2222
*/
23-
data class ReportIntegration(
23+
data class AdditionalData(
2424
val text: String,
2525
)

0 commit comments

Comments
 (0)