Remotely/Shared/ViewModels/ChatHistoryItem.cs
2021-07-29 07:57:31 -07:00

36 lines
988 B
C#

using Remotely.Shared.Enums;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Remotely.Shared.ViewModels
{
public class ChatHistoryItem
{
public ChatHistoryItemOrigin Origin { get; init; }
public string Message { get; init; }
public DateTimeOffset Timestamp { get; init; } = DateTime.Now;
public string ClassName
{
get
{
switch (Origin)
{
case ChatHistoryItemOrigin.System:
return "chat-history-item-system";
case ChatHistoryItemOrigin.Self:
return "chat-history-item-self";
case ChatHistoryItemOrigin.Device:
return "chat-history-item-device";
default:
return string.Empty;
}
}
}
}
}