the-algorithm/product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/configapi/RequestContext.scala
twitter-team ef4c5eb65e Twitter Recommendation Algorithm
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.
2023-03-31 17:36:31 -05:00

20 lines
727 B
Scala

package com.twitter.product_mixer.core.functional_component.configapi
import com.twitter.timelines.configapi.BaseRequestContext
import com.twitter.timelines.configapi.FeatureContext
import com.twitter.timelines.configapi.GuestId
import com.twitter.timelines.configapi.UserId
import com.twitter.timelines.configapi.WithFeatureContext
import com.twitter.timelines.configapi.WithGuestId
import com.twitter.timelines.configapi.WithUserId
/** Represents [[com.twitter.timelines.configapi]]'s context information */
case class RequestContext(
userId: Option[UserId],
guestId: Option[GuestId],
featureContext: FeatureContext)
extends BaseRequestContext
with WithUserId
with WithGuestId
with WithFeatureContext