Message

data class Message(val text: String, val authorIsUser: Boolean, var isPending: Boolean, var isLoaded: Boolean, val uuid: String)

Is used with GeminiChat and ChatMessage. Messages with isPending, should show a circular loading animation

Parameters

isPending

is true if the app is waiting for the HTTP response

isLoaded

is true once the entire generated text has been loaded (with some typing animation)

Constructors

Link copied to clipboard
constructor(text: String = "", authorIsUser: Boolean = true, isPending: Boolean = false, isLoaded: Boolean = false)
private constructor(text: String, authorIsUser: Boolean, isPending: Boolean, isLoaded: Boolean, uuid: String)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean