diff options
| author | dkanada <dkanada@users.noreply.github.com> | 2025-12-14 00:29:28 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-12-13 08:29:28 -0700 |
| commit | dd480f96cdd341c8a986eb4cb7133eff3d535f63 (patch) | |
| tree | 620010705b9c48575ede87d280e3a9d2828a944b /Emby.Naming/Book/BookFileNameParserResult.cs | |
| parent | 6b6d54a07cd9b5d1619a266a8cae8d20ef926cf7 (diff) | |
parse more information from book filenames (#15655)
Diffstat (limited to 'Emby.Naming/Book/BookFileNameParserResult.cs')
| -rw-r--r-- | Emby.Naming/Book/BookFileNameParserResult.cs | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/Emby.Naming/Book/BookFileNameParserResult.cs b/Emby.Naming/Book/BookFileNameParserResult.cs new file mode 100644 index 000000000..f29716b9e --- /dev/null +++ b/Emby.Naming/Book/BookFileNameParserResult.cs @@ -0,0 +1,41 @@ +using System; + +namespace Emby.Naming.Book +{ + /// <summary> + /// Data object used to pass metadata parsed from a book filename. + /// </summary> + public class BookFileNameParserResult + { + /// <summary> + /// Initializes a new instance of the <see cref="BookFileNameParserResult"/> class. + /// </summary> + public BookFileNameParserResult() + { + Name = null; + Index = null; + Year = null; + SeriesName = null; + } + + /// <summary> + /// Gets or sets the name of the book. + /// </summary> + public string? Name { get; set; } + + /// <summary> + /// Gets or sets the book index. + /// </summary> + public int? Index { get; set; } + + /// <summary> + /// Gets or sets the publication year. + /// </summary> + public int? Year { get; set; } + + /// <summary> + /// Gets or sets the series name. + /// </summary> + public string? SeriesName { get; set; } + } +} |
