Last active
August 29, 2015 14:21
-
-
Save nuttycom/cf1881260888b781fdcb to your computer and use it in GitHub Desktop.
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
sealed trait Request[A] | |
case class PostTweet[A](userId: UserId, tweet: Tweet, a: => A) extends Request[A] | |
case class GetTweets[A](userId: UserId, cont: List[Tweet] => A) extends Request[A] | |
case class GetUserName[A](userId: UserId, cont: UserName => A) extends Request[A] | |
case class GetPhoto[A](userId: UserId, cont: UserPhoto => A) extends Request[A] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment