Skip to content

Instantly share code, notes, and snippets.

@toidiu
Last active July 23, 2018 18:02
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 toidiu/c49d92a57ee31798abf4939c07cb6b4a to your computer and use it in GitHub Desktop.
Save toidiu/c49d92a57ee31798abf4939c07cb6b4a to your computer and use it in GitHub Desktop.
======== 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