TeamMember

data class TeamMember(val userUid: String, val teamUid: String, val memberRole: TeamMemberRole = TeamMemberRole.MEMBER, val isTeamLead: Boolean = false, val isActive: Boolean = true, val joinedAt: String, val leftAt: String? = null, val user: User? = null)

Domain model representing a team member (user within a team).

Constructors

Link copied to clipboard
constructor(userUid: String, teamUid: String, memberRole: TeamMemberRole = TeamMemberRole.MEMBER, isTeamLead: Boolean = false, isActive: Boolean = true, joinedAt: String, leftAt: String? = null, user: User? = null)

Properties

Link copied to clipboard

Get user designation if available.

Link copied to clipboard

Get display name from user or fallback to UID.

Link copied to clipboard
val isActive: Boolean = true
Link copied to clipboard
val isTeamLead: Boolean = false
Link copied to clipboard
Link copied to clipboard
val leftAt: String? = null
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val user: User? = null
Link copied to clipboard

Functions

Link copied to clipboard
fun hasBeenMemberFor(durationDays: Int): Boolean

Check if member has been with team for a specific duration.