BililiveRecorder/BililiveRecorder.Flv/Pipeline/ProcessingComment.cs
2021-02-27 20:44:04 +08:00

25 lines
735 B
C#

using System;
namespace BililiveRecorder.Flv.Pipeline
{
public class ProcessingComment
{
public ProcessingComment(CommentType commentType, string comment)
{
this.CommentType = commentType;
this.Comment = comment ?? throw new ArgumentNullException(nameof(comment));
}
public ProcessingComment(CommentType commentType, string comment, bool skipCounting) : this(commentType, comment)
{
this.SkipCounting = skipCounting;
}
public CommentType CommentType { get; }
public string Comment { get; }
public bool SkipCounting { get; }
public override string ToString() => $"{this.CommentType} {this.Comment}";
}
}