Represents a chat participant in the RadzenChat component.
Object
Namespace: Radzen.Blazor
Assembly: Radzen.Blazor.dll
public class ChatUserRepresents a chat participant in the RadzenChat component.
public ChatUser()Gets or sets the avatar URL for the participant.
public string AvatarUrl { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the avatar URL for the participant. |
Gets or sets the color theme for the participant's messages.
public string Color { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the color theme for the participant's messages. |
Gets or sets the unique identifier for the participant.
public string Id { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the unique identifier for the participant. |
Gets or sets whether the participant is currently online.
public bool IsOnline { get; set; }
| Type | Description |
|---|---|
| bool | Gets or sets whether the participant is currently online. |
Gets or sets additional metadata for the participant.
public Dictionary<string, object> Metadata { get; set; }
| Type | Description |
|---|---|
| Dictionary<string, object> | Gets or sets additional metadata for the participant. |
Gets or sets the display name of the participant.
public string Name { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the display name of the participant. |
Gets the initials for the participant based on their name.
public string GetInitials()
| Type | Description |
|---|---|
| string | The initials string. |