Class UserMessageRecipients
- Namespace
- Tharga.Team
- Assembly
- Tharga.Team.dll
Who a message goes to: a filter — the teams, and within them everyone, the roles or the access levels — and users added by key whatever the filter says, together and with duplicates removed.
public sealed record UserMessageRecipients : IEquatable<UserMessageRecipients>
- Inheritance
-
UserMessageRecipients
- Implements
- Inherited Members
Remarks
Either part is enough: teams with whom in them, users added by key, or both. A selection naming neither teams nor users is refused.
Only active members count: a member who has accepted, is not suspended, has a user record that is not disabled, in a team that is not deleted. Invited and rejected members, suspended members, disabled accounts and deleted teams are left out; an added user is reached when they are an active member of any team.
Properties
AccessLevels
Everyone in the filter's teams at any of these access levels.
public AccessLevel[] AccessLevels { get; init; }
Property Value
AllTeams
Whether the filter applies within every team.
public bool AllTeams { get; init; }
Property Value
EveryMember
Whether everyone in the filter's teams is reached.
public bool EveryMember { get; init; }
Property Value
Roles
Everyone in the filter's teams holding any of these tenant roles.
public string[] Roles { get; init; }
Property Value
- string[]
TeamKeys
The teams the filter applies within; ignored when AllTeams is set.
public string[] TeamKeys { get; init; }
Property Value
- string[]
UserKeys
Users added by key, reached whatever the filter says, in whichever teams they are active.
public string[] UserKeys { get; init; }
Property Value
- string[]