private[this] def mostViewedVideoToThrift()

in src/main/scala/com/gu/contentapi/mostviewedvideo/OphanStore.scala [89:96]


  private[this] def mostViewedVideoToThrift(mostViewedVideo: MostViewedVideoModel): MostViewedVideoThrift =
    MostViewedVideoThrift(id = mostViewedVideo.id, count = mostViewedVideo.count)

  private[this] def mostViewedVideoContainerToThrift(mostViewedVideoContainer: MostViewedVideoContainerModel): MostViewedVideoContainerThrift = {
    MostViewedVideoContainerThrift(
      id = mostViewedVideoContainer.id,
      videos = mostViewedVideoContainer.videos.map(mostViewedVideoToThrift))
  }