using System;
namespace BililiveRecorder.Flv.Pipeline
{
public class ProcessingComment
{
public ProcessingComment(CommentType type, bool actionRequired, string comment)
{
this.Type = type;
this.ActionRequired = actionRequired;
this.Comment = comment ?? throw new ArgumentNullException(nameof(comment));
}
///
/// Type
///
public CommentType Type { get; }
///
/// Action Required
///
public bool ActionRequired { get; }
///
/// Comment
///
public string Comment { get; }
public override string ToString() => $"({this.Type},{(this.ActionRequired ? "A" : "C")}): {this.Comment}";
}
}