Purchase

DTO class for purchases.

Author

Jan Müller
data class Purchase(itemId: String,amount: Int)

Constructors

<init>
Link copied to clipboard
fun <init>(itemId: String, amount: Int)

Functions

component1
Link copied to clipboard
operator fun component1(): String
component2
Link copied to clipboard
operator fun component2(): Int
copy
Link copied to clipboard
fun copy(itemId: String, amount: Int): Purchase
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

amount
Link copied to clipboard
The amount purchased.
val amount: Int
itemId
Link copied to clipboard
The id of the purchased Item.
val itemId: String