23 lines
658 B
C#
23 lines
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;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|