Last active
July 23, 2018 18:02
-
-
Save toidiu/c49d92a57ee31798abf4939c07cb6b4a 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
======== New model | |
case class LiveStationRecsResult( | |
recs: Seq[Recs] | |
contentName: String, | |
contentType: RecsType, | |
contentId: String | |
) | |
enum RecsType | |
trait Recs | |
======== Old model | |
case class LiveStationRecsResult( | |
metaData: RecsMetaData, | |
recs: Seq[LiveStation] | |
) | |
case class RecsMetaData( | |
contentId: String, | |
contentName: String, | |
contentType: String | |
) | |
final case class LiveStation( | |
id: Int, | |
name: String, | |
description: String, | |
logo: String, | |
callLetters: String, | |
streams: Map[String, String], | |
genres: Seq[Genre] | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment