Class MemberItem
A member of the open room, for its member list.
Implements
Inherited Members
Namespace: Uniform.Chat.Avalonia.ViewModels
Assembly: Uniform.Chat.Avalonia.dll
Syntax
public sealed record MemberItem : IEquatable<MemberItem>
Constructors
| Edit this page View SourceMemberItem(string, string, bool, bool, bool, bool, bool)
A member of the open room, for its member list.
Declaration
public MemberItem(string UserId, string Name, bool IsInvited, bool CanVerify, bool IsVerified = false, bool IsOwn = false, bool IsBlocked = false)
Parameters
| Type | Name | Description |
|---|---|---|
| string | UserId | User ID. |
| string | Name | Display name in the room. |
| bool | IsInvited | Whether the user is invited but not joined. |
| bool | CanVerify | Whether they can be verified from here: someone else, with encryption on. |
| bool | IsVerified | Whether this device has verified them. |
| bool | IsOwn | Whether this is the user themselves. |
| bool | IsBlocked | Whether the user has blocked them. |
Properties
| Edit this page View SourceBlockText
Get the text of the button that blocks or unblocks them.
Declaration
public string BlockText { get; }
Property Value
| Type | Description |
|---|---|
| string |
CanVerify
Whether they can be verified from here: someone else, with encryption on.
Declaration
public bool CanVerify { get; init; }
Property Value
| Type | Description |
|---|---|
| bool |
Details
Get the second line, e.g. @bob:example.org · invited or @bob:example.org · verified.
Declaration
public string Details { get; }
Property Value
| Type | Description |
|---|---|
| string |
IsBlocked
Whether the user has blocked them.
Declaration
public bool IsBlocked { get; init; }
Property Value
| Type | Description |
|---|---|
| bool |
IsInvited
Whether the user is invited but not joined.
Declaration
public bool IsInvited { get; init; }
Property Value
| Type | Description |
|---|---|
| bool |
IsOwn
Whether this is the user themselves.
Declaration
public bool IsOwn { get; init; }
Property Value
| Type | Description |
|---|---|
| bool |
IsVerified
Whether this device has verified them.
Declaration
public bool IsVerified { get; init; }
Property Value
| Type | Description |
|---|---|
| bool |
Name
Display name in the room.
Declaration
public string Name { get; init; }
Property Value
| Type | Description |
|---|---|
| string |
ShowVerify
Whether to offer verifying: possible, and not done yet.
Declaration
public bool ShowVerify { get; }
Property Value
| Type | Description |
|---|---|
| bool |
UserId
User ID.
Declaration
public string UserId { get; init; }
Property Value
| Type | Description |
|---|---|
| string |