the-algorithm/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/geo/PopGeoSourceFSConfig.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

21 lines
824 B
Scala

package com.twitter.follow_recommendations.common.candidate_sources.geo
import com.twitter.follow_recommendations.configapi.common.FeatureSwitchConfig
import com.twitter.timelines.configapi.FSBoundedParam
import com.twitter.timelines.configapi.FSName
import com.twitter.timelines.configapi.FSParam
import javax.inject.Inject
import javax.inject.Singleton
@Singleton
class PopGeoSourceFSConfig @Inject() () extends FeatureSwitchConfig {
override val intFSParams: Seq[FSBoundedParam[Int] with FSName] = Seq(
PopGeoSourceParams.PopGeoSourceGeoHashMaxPrecision,
PopGeoSourceParams.PopGeoSourceMaxResultsPerPrecision,
PopGeoSourceParams.PopGeoSourceGeoHashMinPrecision,
)
override val booleanFSParams: Seq[FSParam[Boolean] with FSName] = Seq(
PopGeoSourceParams.PopGeoSourceReturnFromAllPrecisions,
)
}