aboutsummaryrefslogtreecommitdiff
path: root/Emby.Naming/Book/BookFileNameParserResult.cs
diff options
context:
space:
mode:
authordkanada <dkanada@users.noreply.github.com>2025-12-14 00:29:28 +0900
committerGitHub <noreply@github.com>2025-12-13 08:29:28 -0700
commitdd480f96cdd341c8a986eb4cb7133eff3d535f63 (patch)
tree620010705b9c48575ede87d280e3a9d2828a944b /Emby.Naming/Book/BookFileNameParserResult.cs
parent6b6d54a07cd9b5d1619a266a8cae8d20ef926cf7 (diff)
parse more information from book filenames (#15655)
Diffstat (limited to 'Emby.Naming/Book/BookFileNameParserResult.cs')
-rw-r--r--Emby.Naming/Book/BookFileNameParserResult.cs41
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; }
+ }
+}