RefyLocalUser

abstract class RefyLocalUser : EquinoxLocalUser

The RefyLocalUser class is useful to represent a RefyUser in the client application

Author

N7ghtm4r3 - Tecknobit

See also

EquinoxLocalUser

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
collections the collections of the user
Link copied to clipboard
protected open var customLinks: ArrayList<CustomRefyLink>
customLinks the custom links of the user
Link copied to clipboard
protected open var email: String
Link copied to clipboard
protected open var hostAddress: String
Link copied to clipboard
protected open var language: String
Link copied to clipboard
protected open var links: ArrayList<RefyLink>
links the links of the user
Link copied to clipboard
protected open var name: String
Link copied to clipboard
protected open var password: String
Link copied to clipboard
protected open var profilePic: String
Link copied to clipboard
protected val REFY_PREFERENCES_FILE: String = "Refy"
REFY_PREFERENCES_FILE the name of the preferences file
Link copied to clipboard
protected open var surname: String
Link copied to clipboard
protected open var tagName: String
tagName the tag name of the user
Link copied to clipboard
protected open var teams: ArrayList<Team>
teams the teams of the user
Link copied to clipboard
protected open var theme: EquinoxUser.ApplicationTheme
Link copied to clipboard
protected open var userId: String
Link copied to clipboard
protected open var userToken: String

Functions

Link copied to clipboard
open fun clear()
Link copied to clipboard
private open fun <T : RefyItem?> filterOwnedOnlyUserList(userList: List<T>, filter: Boolean): List<T>
Method to get a user list with only the item who is the author if it needs to be filtered
Link copied to clipboard
Method to get collections instance No-any params required
Link copied to clipboard
Link copied to clipboard
open fun getCustomLinks(ownedOnly: Boolean): List<CustomRefyLink>
Method to get customLinks instance No-any params required
Link copied to clipboard
open fun getEmail(): String
Link copied to clipboard
Link copied to clipboard
open fun getLanguage(): String
Link copied to clipboard
open fun getLinks(ownedOnly: Boolean): List<RefyLink>
Method to get links instance No-any params required
Link copied to clipboard
open fun getName(): String
Link copied to clipboard
open fun getPassword(): String
Link copied to clipboard
protected abstract fun getPreference(p: String): String
Link copied to clipboard
open fun getProfilePic(): String
Link copied to clipboard
open fun getSurname(): String
Link copied to clipboard
open fun getTagName(): String
Method to get tagName instance No-any params required
Link copied to clipboard
open fun getTeams(ownedOnly: Boolean): List<Team>
Method to get teams instance No-any params required
Link copied to clipboard
open fun getTheme(): EquinoxUser.ApplicationTheme
Link copied to clipboard
open fun getUserId(): String
Link copied to clipboard
open fun getUserToken(): String
Link copied to clipboard
protected open fun initLocalUser()
Link copied to clipboard
open fun insertNewUser(hostAddress: String, name: String, surname: String, email: String, password: String, language: String, hResponse: JsonHelper)

open fun insertNewUser(hostAddress: String, name: String, surname: String, email: String, password: String, language: String, hResponse: JsonHelper, tagName: String)
Method to insert and init a new local user
Link copied to clipboard
Link copied to clipboard
open fun setCollections(collections: List<LinksCollection>)
Method to set collections instance
Link copied to clipboard
open fun setCustomLinks(customLinks: List<CustomRefyLink>)
Method to set customLinks instance
Link copied to clipboard
open fun setEmail(email: String)
Link copied to clipboard
open fun setHostAddress(hostAddress: String)
Link copied to clipboard
open fun setLanguage(language: String)
Link copied to clipboard
open fun setLinks(links: List<RefyLink>)
Method to set links instance
Link copied to clipboard
open fun setName(name: String)
Link copied to clipboard
open fun setPassword(password: String)
Link copied to clipboard
protected abstract fun setPreference(p: String, p1: String)
Link copied to clipboard
open fun setProfilePic(profilePic: String)
Link copied to clipboard
open fun setSurname(surname: String)
Link copied to clipboard
open fun setTagName(tagName: String)
Method to set the tagName instance
Link copied to clipboard
open fun setTeams(teams: List<Team>)
Method to set teams instance
Link copied to clipboard
open fun setTheme(theme: EquinoxUser.ApplicationTheme)
Link copied to clipboard
open fun setUserId(userId: String)
Link copied to clipboard
private open fun <T : RefyItem?> setUserList(currentList: List<T>, newList: List<T>)
Method to set a user list
Link copied to clipboard
open fun setUserToken(userToken: String)