mirror of
https://github.com/immense/Remotely.git
synced 2025-10-26 11:27:15 +00:00
36 lines
988 B
C#
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;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|