Skip to content

Instantly share code, notes, and snippets.

@beyondxscratch
Last active August 9, 2020 23:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save beyondxscratch/bf5ea2f415b2e4aaebce196bbdf9e95d to your computer and use it in GitHub Desktop.
Save beyondxscratch/bf5ea2f415b2e4aaebce196bbdf9e95d to your computer and use it in GitHub Desktop.
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