mirror of
https://github.com/BlossomiShymae/Needlework.Net.git
synced 2025-12-06 10:10:48 +01:00
22 lines
559 B
C#
22 lines
559 B
C#
using BlossomiShymae.GrrrLCU;
|
|
using CommunityToolkit.Mvvm.ComponentModel;
|
|
using System;
|
|
|
|
namespace Needlework.Net.ViewModels.Pages.Websocket;
|
|
|
|
public class EventViewModel : ObservableObject
|
|
{
|
|
public string Time { get; }
|
|
public string Type { get; }
|
|
public string Uri { get; }
|
|
|
|
public string Key => $"{Time} {Type} {Uri}";
|
|
|
|
public EventViewModel(EventData eventData)
|
|
{
|
|
Time = $"{DateTime.Now:HH:mm:ss.fff}";
|
|
Type = eventData?.EventType?.ToUpper() ?? string.Empty;
|
|
Uri = eventData?.Uri ?? string.Empty;
|
|
}
|
|
}
|