ChatUser Class

Represents a chat participant in the RadzenChat component.

Inheritance

Object

ChatUser

Namespace: Radzen.Blazor

Assembly: Radzen.Blazor.dll

Syntax

public class ChatUser

Constructors

ChatUserlink

Represents a chat participant in the RadzenChat component.

Declaration
public ChatUser()

Properties

AvatarUrllink

Gets or sets the avatar URL for the participant.

Declaration
public string AvatarUrl { get; set; }
Property Value
Type Description
stringGets or sets the avatar URL for the participant.

Colorlink

Gets or sets the color theme for the participant's messages.

Declaration
public string Color { get; set; }
Property Value
Type Description
stringGets or sets the color theme for the participant's messages.

Idlink

Gets or sets the unique identifier for the participant.

Declaration
public string Id { get; set; }
Property Value
Type Description
stringGets or sets the unique identifier for the participant.

IsOnlinelink

Gets or sets whether the participant is currently online.

Declaration
public bool IsOnline { get; set; }
Property Value
Type Description
boolGets or sets whether the participant is currently online.

Metadatalink

Gets or sets additional metadata for the participant.

Declaration
public Dictionary<string, object> Metadata { get; set; }
Property Value
Type Description
Dictionary<string, object>Gets or sets additional metadata for the participant.

Namelink

Gets or sets the display name of the participant.

Declaration
public string Name { get; set; }
Property Value
Type Description
stringGets or sets the display name of the participant.

Methods

GetInitialslink

Gets the initials for the participant based on their name.

Declaration
public string GetInitials()
Returns
Type Description
stringThe initials string.
An error has occurred. This app may no longer respond until reloaded. Reload 🗙