Table of Contents

Class Group

Namespace
Signal.Domain.Entities
Assembly
Signal.Domain.dll

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

id GroupId

The group id.

name string

The group name.

members IEnumerable<string>

Member identifiers (phone numbers or UUIDs).

admins IEnumerable<string>

Admin identifiers (phone numbers or UUIDs).

description string

The group description.

blocked bool

Whether the account blocked the group.

pendingInvites IEnumerable<string>

Identifiers of invited users who have not joined yet.

inviteLink string

The group invite link, if enabled.

Properties

Admins

Admin identifiers (phone numbers or UUIDs), compared case-insensitively.

public IReadOnlySet<string> Admins { get; }

Property Value

IReadOnlySet<string>

Description

The group description.

public string? Description { get; }

Property Value

string

The group invite link, if enabled.

public string? InviteLink { get; }

Property Value

string

IsBlocked

Whether the account blocked the group.

public bool IsBlocked { get; }

Property Value

bool

Members

Member identifiers (phone numbers or UUIDs), compared case-insensitively.

public IReadOnlySet<string> Members { get; }

Property Value

IReadOnlySet<string>

Name

The group name.

public string Name { get; }

Property Value

string

PendingInvites

Identifiers of invited users who have not joined yet.

public IReadOnlySet<string> PendingInvites { get; }

Property Value

IReadOnlySet<string>

Methods

HasMember(string)

Whether identifier is a member.

public bool HasMember(string identifier)

Parameters

identifier string

A phone number or UUID.

Returns

bool

true if the identifier is in Members.

IsAdmin(string)

Whether identifier is an admin.

public bool IsAdmin(string identifier)

Parameters

identifier string

A phone number or UUID.

Returns

bool

true if the identifier is in Admins.