1
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
using System;
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using Newtonsoft.Json;
|
||||
@@ -6,6 +6,25 @@ using Org.BouncyCastle.Asn1.Crmf;
|
||||
|
||||
namespace BarrageGrab.Modles.JsonEntity
|
||||
{
|
||||
/// <summary>
|
||||
/// 直播平台
|
||||
/// </summary>
|
||||
public enum LivePlatform
|
||||
{
|
||||
/// <summary>
|
||||
/// 抖音
|
||||
/// </summary>
|
||||
Douyin = 0,
|
||||
/// <summary>
|
||||
/// 快手
|
||||
/// </summary>
|
||||
Kuaishou = 1,
|
||||
/// <summary>
|
||||
/// 哔哩哔哩
|
||||
/// </summary>
|
||||
Bilibili = 2
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 弹幕消息类型
|
||||
/// </summary>
|
||||
@@ -96,6 +115,11 @@ namespace BarrageGrab.Modles.JsonEntity
|
||||
/// </summary>
|
||||
public string ProcessName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 直播平台
|
||||
/// </summary>
|
||||
public LivePlatform Platform { get; set; } = LivePlatform.Douyin;
|
||||
|
||||
/// <summary>
|
||||
/// 消息对象
|
||||
/// </summary>
|
||||
@@ -106,11 +130,12 @@ namespace BarrageGrab.Modles.JsonEntity
|
||||
|
||||
}
|
||||
|
||||
public BarrageMsgPack(string data, PackMsgType type, string processName)
|
||||
public BarrageMsgPack(string data, PackMsgType type, string processName, LivePlatform platform = LivePlatform.Douyin)
|
||||
{
|
||||
Data = data;
|
||||
Type = type;
|
||||
ProcessName = processName;
|
||||
Platform = platform;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user