Skip to content

Instantly share code, notes, and snippets.

@beyondxscratch
Last active August 9, 2020 23:28
Show Gist options
  • Save beyondxscratch/d380254f79e95fcddf9705f20c80645b to your computer and use it in GitHub Desktop.
Save beyondxscratch/d380254f79e95fcddf9705f20c80645b to your computer and use it in GitHub Desktop.
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