Adds code

This commit is contained in:
2025-02-19 09:24:59 -06:00
parent 84c616462f
commit 32f29b4795
21 changed files with 601 additions and 1 deletions

View File

@@ -0,0 +1,11 @@
package net.halfbinary.tmnt.dto
import net.halfbinary.tmnt.model.Movie
import java.time.LocalDateTime
import java.util.*
data class MovieRequest(val title: String, val screenedDate: LocalDateTime, val releaseYear: Int, val imdbLink: String, val notes: String) {
fun toModel(): Movie {
return Movie(UUID.randomUUID(), this.title, this.screenedDate, this.releaseYear, this.imdbLink, this.notes)
}
}