Friendship

class Friendship(id: FriendshipId = FriendshipId(), val users: Set<String> = mutableSetOf(), val messages: MutableList<Message> = mutableListOf()) : AggregateRoot<FriendshipId>

Constructors

Link copied to clipboard
constructor(id: FriendshipId = FriendshipId(), users: Set<String> = mutableSetOf(), messages: MutableList<Message> = mutableListOf())

Properties

Link copied to clipboard
open val id: FriendshipId
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun addMessage(message: Message)
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int