实现提供了完整的弹幕功能,包括多行显示、不同颜色、头像支持、防重叠、椭圆形边框、透明度渐变、点击事件、字体样式设置、暂停/继续功能、过滤功能等。还包含了批处理队列处理逻辑、速率限制、错误处理和性能监控等功能。
This commit is contained in:
21
YwxAppWpfDanMu/Models/DanMuMessage.cs
Normal file
21
YwxAppWpfDanMu/Models/DanMuMessage.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using System;
|
||||
using System.Windows;
|
||||
using System.Windows.Media;
|
||||
using static System.Net.Mime.MediaTypeNames;
|
||||
|
||||
namespace YwxAppWpfDanMu.Models
|
||||
{
|
||||
public class DanMuMessage
|
||||
{
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user