ConversationsHomeScreenModel

data class ConversationsHomeScreenModel(val isLoading: Boolean = false, val conversations: List<Conversation> = emptyList(), val error: String? = null)

Data model representing the state of the home screen showing all conversations.

Constructors

Link copied to clipboard
constructor(isLoading: Boolean = false, conversations: List<Conversation> = emptyList(), error: String? = null)

Properties

Link copied to clipboard

List of conversations to display on the home screen; defaults to empty list.

Link copied to clipboard

Optional error message to display if loading or retrieving conversations fails.

Link copied to clipboard

Indicates whether conversation data is currently being loaded.