mirror of
https://github.com/twitter/the-algorithm.git
synced 2024-06-01 08:48:46 +02:00
ef4c5eb65e
Please note we have force-pushed a new initial commit in order to remove some publicly-available Twitter user information. Note that this process may be required in the future.
25 lines
988 B
Scala
25 lines
988 B
Scala
package com.twitter.product_mixer.component_library.decorator.urt.builder.item.message
|
|
|
|
import com.twitter.product_mixer.core.model.marshalling.response.urt.item.message.MessageActionType
|
|
import com.twitter.product_mixer.core.model.marshalling.response.urt.item.message.MessageTextAction
|
|
import com.twitter.product_mixer.core.model.marshalling.response.urt.item.message.UserFacepile
|
|
import com.twitter.product_mixer.core.model.marshalling.response.urt.item.message.UserFacepileDisplayType
|
|
|
|
case class UserFacePileBuilder(
|
|
userIds: Seq[Long],
|
|
featuredUserIds: Seq[Long],
|
|
action: Option[MessageTextAction],
|
|
actionType: Option[MessageActionType],
|
|
displaysFeaturingText: Option[Boolean],
|
|
displayType: Option[UserFacepileDisplayType]) {
|
|
|
|
def apply(): UserFacepile = UserFacepile(
|
|
userIds = userIds,
|
|
featuredUserIds = featuredUserIds,
|
|
action = action,
|
|
actionType = actionType,
|
|
displaysFeaturingText = displaysFeaturingText,
|
|
displayType = displayType
|
|
)
|
|
}
|