CustomStatusBuilder

class CustomStatusBuilder : JsonBuilder<Status> , MutableMap<String, Any?>

Custom payload builder for Status.

Constructors

Link copied to clipboard
fun CustomStatusBuilder()

Functions

Link copied to clipboard
fun alreadyFavorited()

Sets favorited.

Link copied to clipboard
fun alreadyRetweeted()

Sets retweeted.

Link copied to clipboard
open override fun build(): Status

Builds this json, and creates T of JsonModel.

Link copied to clipboard
open override fun clear()
Link copied to clipboard
open fun compute(p0: String, p1: BiFunction<in String, in Any?, out Any?>): Any?
Link copied to clipboard
open fun computeIfAbsent(p0: String, p1: Function<in String, out Any?>): Any?
Link copied to clipboard
open fun computeIfPresent(p0: String, p1: BiFunction<in String, in Any, out Any?>): Any?
Link copied to clipboard
open override fun containsKey(key: String): Boolean
Link copied to clipboard
open override fun containsValue(value: Any?): Boolean
Link copied to clipboard
fun count(retweet: Int = 0, favorite: Int = 0)

Sets count.

Link copied to clipboard
fun createdAt(time: TemporalAccessor? = null)

Sets created_at.

Link copied to clipboard
open fun forEach(p0: BiConsumer<in String, in Any?>)
Link copied to clipboard
open operator override fun get(key: String): Any?
Link copied to clipboard
open fun getOrDefault(key: String, defaultValue: Any?): Any?
Link copied to clipboard
fun inReplyTo(    statusId: Long,     userId: Long,     screenName: String)

Sets in_reply_to.

Link copied to clipboard
open override fun isEmpty(): Boolean
Link copied to clipboard
open fun merge(    p0: String,     p1: Any,     p2: BiFunction<in Any, in Any, out Any?>): Any?
Link copied to clipboard
open override fun put(key: String, value: Any?): Any?
Link copied to clipboard
open override fun putAll(from: Map<out String, Any?>)
Link copied to clipboard
open fun putIfAbsent(p0: String, p1: Any?): Any?
Link copied to clipboard
open override fun remove(key: String): Any?
open fun remove(key: String, value: Any?): Boolean
Link copied to clipboard
open fun replace(p0: String, p1: Any?): Any?
open fun replace(    p0: String,     p1: Any?,     p2: Any?): Boolean
Link copied to clipboard
open fun replaceAll(p0: BiFunction<in String, in Any?, out Any?>)
Link copied to clipboard
fun source(name: String, url: String)

Sets source.

Link copied to clipboard
fun text(operation: () -> Any?)
fun text(value: String)

Sets text.

Link copied to clipboard
fun textBuilder(builder: StringBuilder.() -> Unit)

Sets text with builder.

Link copied to clipboard
fun url(    url: String,     start: Int,     end: Int)

Sets url.

Link copied to clipboard
fun user(builder: CustomUserBuilder.() -> Unit)

Sets user.

Properties

Link copied to clipboard
open override val entries: MutableSet<MutableMap.MutableEntry<String, Any?>>
Link copied to clipboard
open override val keys: MutableSet<String>
Link copied to clipboard
open override val size: Int
Link copied to clipboard
open override val values: MutableCollection<Any?>