PartialUser

DTO class for creating and updating Users.

Author

Jan Müller
data class PartialUser(id: String,name: String,isAdmin: Boolean,password: String?)

Constructors

<init>
Link copied to clipboard
fun <init>(id: String, name: String, isAdmin: Boolean, password: String?)

Functions

component1
Link copied to clipboard
operator fun component1(): String
component2
Link copied to clipboard
operator fun component2(): String
component3
Link copied to clipboard
operator fun component3(): Boolean
component4
Link copied to clipboard
operator fun component4(): String?
copy
Link copied to clipboard
fun copy(id: String, name: String, isAdmin: Boolean, password: String?): PartialUser
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open override fun hashCode(): Int
toString
Link copied to clipboard
open override fun toString(): String

Properties

id
Link copied to clipboard
The id of the User.
val id: String
isAdmin
Link copied to clipboard
Indicates whether the User has admin privileges.
val isAdmin: Boolean
name
Link copied to clipboard
The name of the User.
val name: String
password
Link copied to clipboard
The optional password of the User.
val password: String?

Extensions

asDomainUser
Link copied to clipboard
Extension method for turning PartialUsers into Users without Transactions.
fun PartialUser.asDomainUser(profileImage: ProfileImage?): User