list

abstract fun <T> list(token: String, userId: String, ownedOnly: Boolean): T

Method to get a list of items

Return

the items list, if authorized, else failed message as T

Parameters

userId

: the identifier of the user

token

: the token of the user

ownedOnly

: whether to get only the items where the user is the owner

<T>

the RefyItem type