Skip to content

Instantly share code, notes, and snippets.

Created August 13, 2020 17:55
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
package org.craftsrecords.talkadvisor.infra.resources
import org.springframework.hateoas.Identifiable
import java.util.*
import org.craftsrecords.talkadvisor.recommendation.Recommendation as DomainRecommendation
import as DomainTalk
class Recommendation(private val id: UUID, val talks: List<Talk>) : Identifiable<UUID> {
override fun getId() = id
fun DomainRecommendation.toResource() = Recommendation(id = id, talks =
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment