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)
build
Link copied to clipboard
common
fun build(): List<TextSource>
invoke
Link copied to clipboard
common
operator fun invoke(vararg source: TextSource): Boolean
unaryPlus
Link copied to clipboard
common
operator fun TextSource.unaryPlus()
operator fun String.unaryPlus()
operator fun List<TextSource>.unaryPlus(): Boolean

Properties

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

Extensions

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