app / com.ocean.ishareeconomy_android.models / User

User

class User

Part of models.

User object that is used to login and then fetch the correct user object

Constructors

<init>

Part of models.

User(id: String, firstName: String, lastName: String, username: String, address: String, rating: Int, distance: Double, lending: List<LendingObject>, using: List<LendingObject>)

Properties

address

the user's full address String: street number, street name, city, postal code, country

val address: String

distance

the user's distance Double from the logged in user

val distance: Double

firstName

the user's first name String

val firstName: String

fullName

the user's full name String composed of first and last names capitalized

val fullName: String

id

the String id of the user

val id: String

lastName

the user's last name String

val lastName: String

lending

var lending: List<LendingObject>

rating

the user's rating Int

val rating: Int

username

the user's username String, used to login

val username: String

using

var using: List<LendingObject>