CollabVMDesktopClient/CollabVMClient/ViewModels/ChatMessageViewModel.cs
2023-08-29 08:52:35 -04:00

23 lines
No EOL
658 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CollabVMClient.ViewModels
{
internal class ChatMessageViewModel : ViewModelBase
{
private string _username;
private string _message;
public string Username => _username;
public string Message => _message;
public string HTML => string.IsNullOrEmpty(_username) ? _message : $"<b>{_username}></b> {_message}";
public ChatMessageViewModel(string username, string message)
{
this._username = username;
this._message = message;
}
}
}