Class Group
A snapshot of a Signal group as known to the account.
public sealed class Group : Entity<GroupId>, IEquatable<Entity<GroupId>>
- Inheritance
-
Group
- Implements
- Inherited Members
Constructors
Group(GroupId, string, IEnumerable<string>, IEnumerable<string>, string?, bool, IEnumerable<string>?, string?)
A snapshot of a Signal group as known to the account.
public Group(GroupId id, string name, IEnumerable<string> members, IEnumerable<string> admins, string? description = null, bool blocked = false, IEnumerable<string>? pendingInvites = null, string? inviteLink = null)
Parameters
idGroupIdThe group id.
namestringThe group name.
membersIEnumerable<string>Member identifiers (phone numbers or UUIDs).
adminsIEnumerable<string>Admin identifiers (phone numbers or UUIDs).
descriptionstringThe group description.
blockedboolWhether the account blocked the group.
pendingInvitesIEnumerable<string>Identifiers of invited users who have not joined yet.
inviteLinkstringThe group invite link, if enabled.
Properties
Admins
Admin identifiers (phone numbers or UUIDs), compared case-insensitively.
public IReadOnlySet<string> Admins { get; }
Property Value
Description
The group description.
public string? Description { get; }
Property Value
InviteLink
The group invite link, if enabled.
public string? InviteLink { get; }
Property Value
IsBlocked
Whether the account blocked the group.
public bool IsBlocked { get; }
Property Value
Members
Member identifiers (phone numbers or UUIDs), compared case-insensitively.
public IReadOnlySet<string> Members { get; }
Property Value
Name
The group name.
public string Name { get; }
Property Value
PendingInvites
Identifiers of invited users who have not joined yet.
public IReadOnlySet<string> PendingInvites { get; }
Property Value
Methods
HasMember(string)
Whether identifier is a member.
public bool HasMember(string identifier)
Parameters
identifierstringA phone number or UUID.
Returns
IsAdmin(string)
Whether identifier is an admin.
public bool IsAdmin(string identifier)
Parameters
identifierstringA phone number or UUID.