BililiveRecorder/BililiveRecorder.Flv/Pipeline/ProcessingComment.cs

26 lines
546 B
C#
Raw Normal View History

2021-02-27 20:44:04 +08:00
using System;
namespace BililiveRecorder.Flv.Pipeline
{
public class ProcessingComment
{
2021-04-07 18:24:05 +08:00
public ProcessingComment(CommentType t, string c)
2021-02-27 20:44:04 +08:00
{
2021-04-07 18:24:05 +08:00
this.T = t;
this.C = c ?? throw new ArgumentNullException(nameof(c));
2021-02-27 20:44:04 +08:00
}
2021-04-07 18:24:05 +08:00
/// <summary>
/// Type
/// </summary>
public CommentType T { get; }
2021-02-27 20:44:04 +08:00
2021-04-07 18:24:05 +08:00
/// <summary>
/// Comment
/// </summary>
public string C { get; }
2021-02-27 20:44:04 +08:00
2021-04-07 18:24:05 +08:00
public override string ToString() => $"{this.T} {this.C}";
2021-02-27 20:44:04 +08:00
}
}