Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
package org.craftsrecords.talkadvisor.recommendation.spi
import org.craftsrecords.hexarch.Repository
import org.craftsrecords.talkadvisor.recommendation.profile.Profile
@Repository
interface Profiles {
fun save(profile: Profile): Profile
fun fetch(userId: String): Profile?
}
package org.craftsrecords.talkadvisor.recommendation.spi
import org.craftsrecords.hexarch.Repository
import org.craftsrecords.talkadvisor.recommendation.Recommendation
@Repository
interface Recommendations {
fun save(recommendation: Recommendation): Recommendation
}
package org.craftsrecords.talkadvisor.recommendation.spi
import org.craftsrecords.talkadvisor.recommendation.preferences.Topic
import org.craftsrecords.talkadvisor.recommendation.talk.Talk
@FunctionalInterface
interface SearchTalks {
val maxNumberOfTalks: Int
fun forTopics(topics: Set<Topic>): Set<Talk>
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.