mirror of
https://github.com/twitter/the-algorithm.git
synced 2024-06-01 08:48:46 +02:00
01dbfee4c0
Tweetypie is the core Tweet service that handles the reading and writing of Tweet data.
12 lines
517 B
Scala
12 lines
517 B
Scala
package com.twitter.tweetypie.thriftscala.entities
|
|
|
|
import com.twitter.tweetypie.thriftscala.CashtagEntity
|
|
import com.twitter.tweetypie.tweettext.TextEntity
|
|
|
|
object CashtagTextEntity extends TextEntity[CashtagEntity] {
|
|
override def fromIndex(entity: CashtagEntity): Short = entity.fromIndex
|
|
override def toIndex(entity: CashtagEntity): Short = entity.toIndex
|
|
override def move(entity: CashtagEntity, fromIndex: Short, toIndex: Short): CashtagEntity =
|
|
entity.copy(fromIndex = fromIndex, toIndex = toIndex)
|
|
}
|