aboutsummaryrefslogtreecommitdiff
path: root/Emby.Naming/Book/BookFileNameParserResult.cs
diff options
context:
space:
mode:
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; }
+ }
+}