User

interface User

Interface representing a user.

Functions

Link copied to clipboard
open fun create(id: UserId, name: String, surname: String, email: String): User
Factory method to create an instance of User.
Link copied to clipboard
abstract fun email(): String
Gets the email of the user.
Link copied to clipboard
abstract fun id(): UserId
Gets the ID of the user.
Link copied to clipboard
abstract fun name(): String
Gets the name of the user.
Link copied to clipboard
abstract fun surname(): String
Gets the surname of the user.