aboutsummaryrefslogtreecommitdiff
path: root/Emby.Naming/Video/Format3DResult.cs
diff options
context:
space:
mode:
authorcvium <clausvium@gmail.com>2021-05-24 00:30:41 +0200
committercvium <clausvium@gmail.com>2021-05-24 00:30:41 +0200
commit42a2cc1747c7859c63334a7a45792e0af1410e1a (patch)
tree16e9587342a83948ac6742f05518d9a31836c235 /Emby.Naming/Video/Format3DResult.cs
parentdb9d3b8653d865459e5df5a2fba18f0c9462dbb6 (diff)
Remove some unnecessary allocations
Diffstat (limited to 'Emby.Naming/Video/Format3DResult.cs')
-rw-r--r--Emby.Naming/Video/Format3DResult.cs23
1 files changed, 9 insertions, 14 deletions
diff --git a/Emby.Naming/Video/Format3DResult.cs b/Emby.Naming/Video/Format3DResult.cs
index ac935f2030..aac959c133 100644
--- a/Emby.Naming/Video/Format3DResult.cs
+++ b/Emby.Naming/Video/Format3DResult.cs
@@ -1,5 +1,3 @@
-using System.Collections.Generic;
-
namespace Emby.Naming.Video
{
/// <summary>
@@ -10,27 +8,24 @@ namespace Emby.Naming.Video
/// <summary>
/// Initializes a new instance of the <see cref="Format3DResult"/> class.
/// </summary>
- public Format3DResult()
+ /// <param name="is3D">A value indicating whether the parsed string contains 3D tokens.</param>
+ /// <param name="format3D">The 3D format. Value might be null if [is3D] is <c>false</c>.</param>
+ public Format3DResult(bool is3D, string? format3D)
{
- Tokens = new List<string>();
+ Is3D = is3D;
+ Format3D = format3D;
}
/// <summary>
- /// Gets or sets a value indicating whether [is3 d].
+ /// Gets a value indicating whether [is3 d].
/// </summary>
/// <value><c>true</c> if [is3 d]; otherwise, <c>false</c>.</value>
- public bool Is3D { get; set; }
+ public bool Is3D { get; }
/// <summary>
- /// Gets or sets the format3 d.
+ /// Gets the format3 d.
/// </summary>
/// <value>The format3 d.</value>
- public string? Format3D { get; set; }
-
- /// <summary>
- /// Gets or sets the tokens.
- /// </summary>
- /// <value>The tokens.</value>
- public List<string> Tokens { get; set; }
+ public string? Format3D { get; }
}
}