ChatScreenModel

data class ChatScreenModel(val deviceName: String? = null, val virtualAddress: InetAddress = InetAddress.getByName("192.168.0.1"), val allChatMessages: List<Message> = emptyList(), val offlineWarning: String? = null)

Data model representing the state of a chat screen in the UI.

Constructors

Link copied to clipboard
constructor(deviceName: String? = null, virtualAddress: InetAddress = InetAddress.getByName("192.168.0.1"), allChatMessages: List<Message> = emptyList(), offlineWarning: String? = null)

Properties

Link copied to clipboard

List of all messages to display on the chat screen; defaults to empty list.

Link copied to clipboard

Optional name of the device or user.

Link copied to clipboard

Optional warning message to show if the device/user is offline.

Link copied to clipboard

Virtual network address of the device; defaults to 192.168.0.1.