mirror of
https://github.com/BililiveRecorder/BililiveRecorder.git
synced 2024-12-27 12:35:35 +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; }
|
|
}
|
|
}
|