Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
CreateProfile.kt
package org.craftsrecords.talkadvisor.recommendation.api
import org.craftsrecords.talkadvisor.recommendation.preferences.Preferences
import org.craftsrecords.talkadvisor.recommendation.profile.Profile
@FunctionalInterface
interface CreateProfile {
fun forUserWithPreferences(userId: String, preferences: Preferences): Profile
}
package org.craftsrecords.talkadvisor.recommendation.api
import org.craftsrecords.talkadvisor.recommendation.Recommendation
import org.craftsrecords.talkadvisor.recommendation.criteria.GuestCriteria
interface RecommendTalks {
infix fun satisfying(guestCriteria: GuestCriteria): Recommendation
infix fun to(userId: String): Recommendation
}
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.