-
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.
- Loading branch information
1 parent
aad7f2d
commit 843fe80
Showing
6 changed files
with
120 additions
and
211 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
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
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 |
---|---|---|
@@ -1,21 +1,41 @@ | ||
package com.project.balpyo.api | ||
|
||
import com.project.balpyo.api.response.SpeechMark | ||
import com.project.balpyo.api.response.StorageListResult | ||
|
||
data class BaseDto ( | ||
val id: Long, | ||
val id: Long?, | ||
val content: String?, | ||
val title: String, | ||
val secTime: Long, | ||
val title: String?, | ||
val secTime: Long?, | ||
val voiceFilePath: String?, | ||
val isGenerating :Boolean, | ||
val playTime : Long, | ||
val originalScript : String, | ||
val speed : Long, | ||
val useAi: Boolean, | ||
val tags : List<String>, | ||
val topic : String, | ||
val keywords : String, | ||
val fcmToken : String, | ||
val speechMark : List<SpeechMark> | ||
) | ||
val isGenerating :Boolean?, | ||
val playTime : Long?, | ||
val originalScript : String?, | ||
val speed : Long?, | ||
val useAi: Boolean?, | ||
val tags : List<String>?, | ||
val topic : String?, | ||
val keywords : String?, | ||
val fcmToken : String?, | ||
val speechMark : List<SpeechMark>? | ||
) | ||
fun BaseDto.toStorageListResult(): StorageListResult { | ||
return StorageListResult( | ||
id = this.id ?: -1, | ||
content = this.content ?: "", | ||
title = this.title.orEmpty(), | ||
secTime = this.secTime ?: 0, | ||
voiceFilePath = this.voiceFilePath, | ||
isGenerating = this.isGenerating ?: false, | ||
playTime = this.playTime ?: 0, | ||
originalScript = this.originalScript.orEmpty(), | ||
speed = this.speed?: 0, | ||
useAi = this.useAi?: false, | ||
tags = this.tags.orEmpty(), | ||
topic = this.topic.orEmpty(), | ||
keywords = this.keywords.orEmpty(), | ||
fcmToken = this.fcmToken.orEmpty(), | ||
speechMark = this.speechMark.orEmpty() | ||
) | ||
} |
Oops, something went wrong.