mirror of
https://github.com/BililiveRecorder/BililiveRecorder.git
synced 2024-11-16 11:42:22 +08:00
24 lines
683 B
C#
24 lines
683 B
C#
using System;
|
|
|
|
namespace BililiveRecorder.Core.Templating
|
|
{
|
|
public readonly struct FileNameTemplateOutput
|
|
{
|
|
public FileNameTemplateOutput(FileNameTemplateStatus status, string? errorMessage, string relativePath, string? fullPath)
|
|
{
|
|
this.Status = status;
|
|
this.ErrorMessage = errorMessage;
|
|
this.RelativePath = relativePath ?? throw new ArgumentNullException(nameof(relativePath));
|
|
this.FullPath = fullPath;
|
|
}
|
|
|
|
public FileNameTemplateStatus Status { get; }
|
|
|
|
public string? ErrorMessage { get; }
|
|
|
|
public string RelativePath { get; }
|
|
|
|
public string? FullPath { get; }
|
|
}
|
|
}
|