Files
YwxAppWpfBarrage/YwxAppWpfBarrage/Models/BarrageMessage.cs
2025-03-29 19:54:02 +08:00

21 lines
778 B
C#

using System;
using System.Windows;
using System.Windows.Media;
using static System.Net.Mime.MediaTypeNames;
namespace YwxAppWpfBarrage.Models
{
public class BarrageMessage
{
public string Content { get; set; }
public Color Color { get; set; } = Colors.Orange;
public string AvatarUrl { get; set; }
public double FontSize { get; set; } = 12;
public FontFamily FontFamily { get; set; } = new FontFamily("Microsoft YaHei");
public FontWeight FontWeight { get; set; } = FontWeights.Bold;
public FontStyle FontStyle { get; set; } = FontStyles.Normal;
public double Opacity { get; set; } = 1.0;
public object Tag { get; set; }
public DateTime Timestamp { get; set; } = DateTime.Now;
}
}