class LendingObject : Serializable
Part of models.
LendingObject is an Tool, Service or Transportation that one User lends out and that other users can use
<init> |
creates a LendingObject that extend Serializable for onSafeInstance LendingObject(: String, : String, : String, : String, : ObjectOwner, : ObjectUser?, : List<ObjectUser> = emptyList()) |
description |
a short description text val description: String |
id |
the lendobject's id val id: String |
lendObjectType |
val lendObjectType: LendObjectType |
name |
the name of the lendobject val name: String |
owner |
refers to the User that is the lendobject's owner val owner: ObjectOwner |
type |
: String, the type in string form var type: String |
user |
refers to User that is the lendobject's current user var user: ObjectUser? |
waitingList |
a List<User> that is the lendobject's future users var waitingList: List<ObjectUser> |
asDatabaseModel |
fun LendingObject.asDatabaseModel(): DatabaseLendObject |