mirror of
https://github.com/twitter/the-algorithm.git
synced 2024-06-13 14:48:54 +02:00
18 lines
682 B
Scala
18 lines
682 B
Scala
|
package com.twitter.frigate.pushservice.model.ibis
|
||
|
|
||
|
import com.twitter.frigate.common.base.DiscoverTwitterCandidate
|
||
|
import com.twitter.frigate.pushservice.model.PushTypes.PushCandidate
|
||
|
import com.twitter.frigate.pushservice.util.PushIbisUtil.mergeFutModelValues
|
||
|
import com.twitter.util.Future
|
||
|
|
||
|
trait DiscoverTwitterPushIbis2Hydrator extends Ibis2HydratorForCandidate {
|
||
|
self: PushCandidate with DiscoverTwitterCandidate =>
|
||
|
|
||
|
private lazy val targetModelValues: Map[String, String] = Map(
|
||
|
"target_user" -> target.targetId.toString
|
||
|
)
|
||
|
|
||
|
override lazy val modelValues: Future[Map[String, String]] =
|
||
|
mergeFutModelValues(super.modelValues, Future.value(targetModelValues))
|
||
|
}
|