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
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? | |
} |
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
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 | |
} |
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
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