2018-01-04 19:52:25 +01:00
|
|
|
package jp.juggler.subwaytooter.api.entity
|
|
|
|
|
2018-01-10 16:47:35 +01:00
|
|
|
class TootGap(
|
2021-06-20 15:12:25 +02:00
|
|
|
var maxId: EntityId?, // TLの先頭にギャップを置くかもしれない
|
|
|
|
val sinceId: EntityId,
|
|
|
|
) : TimelineItem() {
|
|
|
|
|
|
|
|
companion object {
|
|
|
|
fun mayNull(maxId: EntityId?, sinceId: EntityId?) =
|
|
|
|
sinceId?.let { TootGap(maxId, it) }
|
|
|
|
}
|
|
|
|
|
|
|
|
override fun getOrderId(): EntityId = sinceId
|
|
|
|
|
|
|
|
// constructor(max_id : Long, since_id : Long) : this(EntityIdLong(max_id), EntityIdLong(since_id))
|
2018-01-04 19:52:25 +01:00
|
|
|
}
|