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
/* Different solutions for future RepoResult (?) object! */ | |
/* | |
* James! | |
*/ | |
interface TourSource<R: ResultReason> { | |
suspend fun getTour(id: String) : Result<Tour, R> | |
suspend fun saveTour(tour: Tour) : Result<?, R> // maybe just a boolean whether it was successful? | |
} |