aboutsummaryrefslogtreecommitdiff
path: root/Emby.Naming/Book/BookFileNameParserResult.cs
blob: f29716b9e3bd8b1338d7705f5afc991158360ee8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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; }
    }
}