app / com.ocean.ishareeconomy_android.repositories / UserRepository / addLendObject

addLendObject

suspend fun addLendObject(id: String, auth: String, name: String, description: String, type: String): Unit

Method that makes a network call to POST a new LendingObject to the user's lending list and on success stores it in the DB

Parameters

id - : String the logged in user id

auth - : String the logged in user's auth token

name - : String the name of the LendingObject that is to be created

description - : String the description of the LendingObject that is to be created

type - : String the type of the LendingObject that is to be created

Return
Unit