GroupMember

@Serializable
data class GroupMember(val id: String, val profilePic: String, val name: String, val surname: String, val email: String, val role: <Error class: unknown class> = DEVELOPER, val status: <Error class: unknown class> = 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: <Error class: unknown class> = DEVELOPER, status: <Error class: unknown class> = PENDING)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
@SerialName
val email: String

The email of the member

Link copied to clipboard
@SerialName
val id: String

The identifier of the member

Link copied to clipboard
@SerialName
val name: String

The name of the member

Link copied to clipboard
@SerialName
val profilePic: String

The profile picture of the member

Link copied to clipboard
@SerialName
val role: <Error class: unknown class>

The role of the member

Link copied to clipboard
@SerialName
val status: <Error class: unknown class>

The current status of the member

Link copied to clipboard
@SerialName
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