app / com.ocean.ishareeconomy_android.models / LendingObject

LendingObject

class LendingObject : Serializable

Part of models.

LendingObject is an Tool, Service or Transportation that one User lends out and that other users can use

Constructors

<init>

creates a LendingObject that extend Serializable for onSafeInstance

LendingObject(id: String, name: String, description: String, type: String, owner: ObjectOwner, user: ObjectUser?, waitingList: List<ObjectUser> = emptyList())

Properties

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>

Extension Functions

asDatabaseModel

fun LendingObject.asDatabaseModel(): DatabaseLendObject