EntitiesBuilder

class EntitiesBuilder

This builder can be used to provide building of TextSources List

See also

Functions

add
Link copied to clipboard
common
fun add(source: TextSource): EntitiesBuilder
addAll
Link copied to clipboard
common
fun addAll(sources: Iterable<TextSource>): EntitiesBuilder
build
Link copied to clipboard
common
fun build(): TextSourcesList
invoke
Link copied to clipboard
common
operator fun invoke(vararg source: TextSource): EntitiesBuilder
plus
Link copied to clipboard
common
operator fun plus(other: EntitiesBuilder): EntitiesBuilder
operator fun plus(source: TextSource): EntitiesBuilder
operator fun plus(text: String): EntitiesBuilder
operator fun plus(sources: Iterable<TextSource>): EntitiesBuilder
unaryPlus
Link copied to clipboard
common
operator fun TextSource.unaryPlus(): EntitiesBuilder
operator fun String.unaryPlus(): EntitiesBuilder
operator fun TextSourcesList.unaryPlus(): EntitiesBuilder

Properties

entities
Link copied to clipboard
common
val entities: TextSourcesList
It is not safe field which contains potentially changeable List

Extensions

bold
Link copied to clipboard
common
inline fun EntitiesBuilder.bold(parts: TextSourcesList): EntitiesBuilder
inline fun EntitiesBuilder.bold(noinline init: EntitiesBuilderBody): EntitiesBuilder
inline fun EntitiesBuilder.bold(vararg parts: TextSource): EntitiesBuilder
inline fun EntitiesBuilder.bold(text: String): EntitiesBuilder
botCommand
Link copied to clipboard
common
inline fun EntitiesBuilder.botCommand(command: String): EntitiesBuilder
cashTag
Link copied to clipboard
common
inline fun EntitiesBuilder.cashTag(parts: TextSourcesList): EntitiesBuilder
inline fun EntitiesBuilder.cashTag(noinline init: EntitiesBuilderBody): EntitiesBuilder
inline fun EntitiesBuilder.cashTag(vararg parts: TextSource): EntitiesBuilder
inline fun EntitiesBuilder.cashTag(text: String): EntitiesBuilder
code
Link copied to clipboard
common
inline fun EntitiesBuilder.code(code: String): EntitiesBuilder
email
Link copied to clipboard
common
inline fun EntitiesBuilder.email(parts: TextSourcesList): EntitiesBuilder
inline fun EntitiesBuilder.email(noinline init: EntitiesBuilderBody): EntitiesBuilder
inline fun EntitiesBuilder.email(vararg parts: TextSource): EntitiesBuilder
inline fun EntitiesBuilder.email(emailAddress: String): EntitiesBuilder
hashtag
Link copied to clipboard
common
inline fun EntitiesBuilder.hashtag(parts: TextSourcesList): EntitiesBuilder
inline fun EntitiesBuilder.hashtag(noinline init: EntitiesBuilderBody): EntitiesBuilder
inline fun EntitiesBuilder.hashtag(vararg parts: TextSource): EntitiesBuilder
inline fun EntitiesBuilder.hashtag(hashtag: String): EntitiesBuilder
italic
Link copied to clipboard
common
inline fun EntitiesBuilder.italic(parts: TextSourcesList): EntitiesBuilder
inline fun EntitiesBuilder.italic(noinline init: EntitiesBuilderBody): EntitiesBuilder
inline fun EntitiesBuilder.italic(vararg parts: TextSource): EntitiesBuilder
inline fun EntitiesBuilder.italic(text: String): EntitiesBuilder
link
Link copied to clipboard
common
inline fun EntitiesBuilder.link(text: String, url: String): EntitiesBuilder
inline fun EntitiesBuilder.link(url: String): EntitiesBuilder
mention
Link copied to clipboard
common
inline fun EntitiesBuilder.mention(parts: TextSourcesList): EntitiesBuilder
inline fun EntitiesBuilder.mention(noinline init: EntitiesBuilderBody): EntitiesBuilder
inline fun EntitiesBuilder.mention(vararg parts: TextSource): EntitiesBuilder
inline fun EntitiesBuilder.mention(whoToMention: String): EntitiesBuilder
inline fun EntitiesBuilder.mention(parts: TextSourcesList, user: User): EntitiesBuilder
inline fun EntitiesBuilder.mention(user: User, vararg parts: TextSource): EntitiesBuilder
inline fun EntitiesBuilder.mention(text: String, user: User): EntitiesBuilder
phone
Link copied to clipboard
common
inline fun EntitiesBuilder.phone(parts: TextSourcesList): EntitiesBuilder
inline fun EntitiesBuilder.phone(noinline init: EntitiesBuilderBody): EntitiesBuilder
inline fun EntitiesBuilder.phone(vararg parts: TextSource): EntitiesBuilder
inline fun EntitiesBuilder.phone(number: String): EntitiesBuilder
pre
Link copied to clipboard
common
inline fun EntitiesBuilder.pre(code: String, language: String?): EntitiesBuilder
regular
Link copied to clipboard
common
inline fun EntitiesBuilder.regular(text: String): EntitiesBuilder
strikethrough
Link copied to clipboard
common
inline fun EntitiesBuilder.strikethrough(parts: TextSourcesList): EntitiesBuilder
inline fun EntitiesBuilder.strikethrough(noinline init: EntitiesBuilderBody): EntitiesBuilder
inline fun EntitiesBuilder.strikethrough(vararg parts: TextSource): EntitiesBuilder
inline fun EntitiesBuilder.strikethrough(text: String): EntitiesBuilder
underline
Link copied to clipboard
common
inline fun EntitiesBuilder.underline(parts: TextSourcesList): EntitiesBuilder
inline fun EntitiesBuilder.underline(noinline init: EntitiesBuilderBody): EntitiesBuilder
inline fun EntitiesBuilder.underline(vararg parts: TextSource): EntitiesBuilder
inline fun EntitiesBuilder.underline(text: String): EntitiesBuilder