Username

value class Username(val full: String) : ChatIdentifier

A value class representing a username that always starts with the "@" symbol.

This class is used to encapsulate the concept of a username, enforce its format, and ensure consistency when dealing with usernames throughout the application.

Throws

if the provided full value doesn't start with "@" during initialization.

Constructors

Link copied to clipboard
constructor(full: String)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The full username string, guaranteed to start with "@".

Link copied to clipboard
Link copied to clipboard

Retrieves the full username as a string.

Link copied to clipboard

A property that returns the username string without the leading "@" symbol.

Functions

Link copied to clipboard
open override fun toString(): String