Class PublicRoomItem
A room of a public room directory.
Implements
Inherited Members
Namespace: Uniform.Chat.Avalonia.ViewModels
Assembly: Uniform.Chat.Avalonia.dll
Syntax
public sealed record PublicRoomItem : IEquatable<PublicRoomItem>
Constructors
| Edit this page View SourcePublicRoomItem(PublicRoom, string, bool)
A room of a public room directory.
Declaration
public PublicRoomItem(PublicRoom Room, string Server, bool IsJoined = false)
Parameters
| Type | Name | Description |
|---|---|---|
| PublicRoom | Room | The directory's entry. |
| string | Server | Server whose directory listed it; empty for the user's own. |
| bool | IsJoined | Whether the user is in the room already. |
Properties
| Edit this page View SourceActionText
Text of the button: Open for rooms the user is in, else Join.
Declaration
public string ActionText { get; }
Property Value
| Type | Description |
|---|---|
| string |
Details
Alias and member count.
Declaration
public string Details { get; }
Property Value
| Type | Description |
|---|---|
| string |
HasTopic
Whether there is a topic to show.
Declaration
public bool HasTopic { get; }
Property Value
| Type | Description |
|---|---|
| bool |
IsJoined
Whether the user is in the room already.
Declaration
public bool IsJoined { get; init; }
Property Value
| Type | Description |
|---|---|
| bool |
Link
Link to join the room by: its alias, else its ID, through the server that listed it.
Declaration
public MatrixLink Link { get; }
Property Value
| Type | Description |
|---|---|
| MatrixLink |
Room
The directory's entry.
Declaration
public PublicRoom Room { get; init; }
Property Value
| Type | Description |
|---|---|
| PublicRoom |
Server
Server whose directory listed it; empty for the user's own.
Declaration
public string Server { get; init; }
Property Value
| Type | Description |
|---|---|
| string |
Title
Name, else alias, else ID.
Declaration
public string Title { get; }
Property Value
| Type | Description |
|---|---|
| string |
Topic
Topic, or empty.
Declaration
public string Topic { get; }
Property Value
| Type | Description |
|---|---|
| string |