Group Member

@Entity
open class GroupMember

The GroupMember class is useful to create a Pandoro's group member

Author

N7ghtm4r3 - Tecknobit

See also

Constructors

Link copied to clipboard
constructor()
Default constructor
constructor(id: String, name: String, surname: String, profilePic: String, email: String, role: Role, invitationStatus: InvitationStatus)
Constructor to init a GroupMember object

Properties

Link copied to clipboard
email the email of the user
Link copied to clipboard
private open var group_member: Group
group_member the group of the member
Link copied to clipboard
val id: String
id identifier of the item
Link copied to clipboard
invitationStatus status of the invitation
Link copied to clipboard
val name: String
name of the item
Link copied to clipboard
profilePic the profile picture of the user
Link copied to clipboard
val role: Role
role the role of the member
Link copied to clipboard
surname the surname of the user

Functions

Link copied to clipboard
open fun getCompleteName(): String
Method to get the complete name of the user
Link copied to clipboard
open fun isAdmin(): Boolean
Method to check if the member is a ADMIN
Link copied to clipboard
open fun isLoggedUser(userLogged: PandoroUser): Boolean
Method to check if the user logged in the session is the current member iterated
Link copied to clipboard
open fun isMaintainer(): Boolean
Method to check if the member is a MAINTAINER