mirror of
https://github.com/twitter/the-algorithm.git
synced 2024-06-13 14:48:54 +02:00
![twitter-team](/assets/img/avatar_default.png)
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.
20 lines
601 B
Scala
20 lines
601 B
Scala
package com.twitter.visibility.interfaces.push_service
|
|
|
|
import com.twitter.gizmoduck.thriftscala.User
|
|
import com.twitter.tweetypie.thriftscala.Tweet
|
|
import com.twitter.visibility.models.SafetyLevel
|
|
import com.twitter.visibility.models.ViewerContext
|
|
|
|
case class PushServiceVisibilityRequest(
|
|
tweet: Tweet,
|
|
author: User,
|
|
viewerContext: ViewerContext,
|
|
safetyLevel: SafetyLevel,
|
|
sourceTweet: Option[Tweet] = None,
|
|
quotedTweet: Option[Tweet] = None,
|
|
isRetweet: Boolean = false,
|
|
isInnerQuotedTweet: Boolean = false,
|
|
isSourceTweet: Boolean = false,
|
|
isOutOfNetworkTweet: Boolean = true,
|
|
)
|