Gain

model.entities.games.Gain
class Gain(from: String, of: Double)

Represents a single monetary gain or loss record for a specific customer.

Encapsulates the result of a game round, tracking which customer participated and the monetary outcome. Positive values represent gains (winnings) while negative values represent losses.

Value parameters

from

the unique identifier of the customer who played

of

the monetary amount gained (positive) or lost (negative)

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

Returns the identifier of the customer who played.

Returns the identifier of the customer who played.

Attributes

Returns

the unique customer identifier

def getMoneyGain: Double

Returns the monetary gain or loss amount.

Returns the monetary gain or loss amount.

Attributes

Returns

positive value for winnings, negative value for losses