GroupMember

@Serializable
data class GroupMember(    val id: String,     val profilePic: String,     val name: String,     val surname: String,     val email: String,     val role: Role = DEVELOPER,     val status: InvitationStatus = PENDING)

The GroupMember data class allow to represent a member of a group data

Author

N7ghtm4r3 - Tecknobit

Constructors

Link copied to clipboard
constructor(id: String, profilePic: String, name: String, surname: String, email: String, role: Role = DEVELOPER, status: InvitationStatus = PENDING)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
@SerialName(value = "email")
val email: String

The email of the member

Link copied to clipboard
@SerialName(value = "id")
val id: String

The identifier of the member

Link copied to clipboard
@SerialName(value = "name")
val name: String

The name of the member

Link copied to clipboard
@SerialName(value = "profile_pic")
val profilePic: String

The profile picture of the member

Link copied to clipboard
@SerialName(value = "role")
val role: Role

The role of the member

Link copied to clipboard
@SerialName(value = "invitation_status")
val status: InvitationStatus

The current status of the member

Link copied to clipboard
@SerialName(value = "surname")
val surname: String

The surname of the member

Functions

Link copied to clipboard

Method to obtain the complete name of the member

Link copied to clipboard

Method to check whether the current role of the member is ADMIN

Link copied to clipboard

Method to check whether the current status of the member is JOINED