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