diff options
| author | dkanada <dkanada@users.noreply.github.com> | 2020-01-19 00:08:37 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-01-19 00:08:37 +0900 |
| commit | c618f3f8eb4ab58004dea94cd475438e555ce461 (patch) | |
| tree | 03a219a548485b0c5ad6afcdcb4fa389c6dcee2c /Emby.Naming/Video/CleanDateTimeResult.cs | |
| parent | 1e65cc469539da0f31aaa93251bf3e0ab2e30a1e (diff) | |
| parent | 9f5bbb126e55b23243d22bcfd85fbbb17e10ec17 (diff) | |
Merge pull request #2257 from Bond-009/cleantests
Fix a couple of tests
Diffstat (limited to 'Emby.Naming/Video/CleanDateTimeResult.cs')
| -rw-r--r-- | Emby.Naming/Video/CleanDateTimeResult.cs | 29 |
1 files changed, 18 insertions, 11 deletions
diff --git a/Emby.Naming/Video/CleanDateTimeResult.cs b/Emby.Naming/Video/CleanDateTimeResult.cs index a7581972e4..73a445612b 100644 --- a/Emby.Naming/Video/CleanDateTimeResult.cs +++ b/Emby.Naming/Video/CleanDateTimeResult.cs @@ -1,26 +1,33 @@ #pragma warning disable CS1591 #pragma warning disable SA1600 +#nullable enable namespace Emby.Naming.Video { - public class CleanDateTimeResult + public readonly struct CleanDateTimeResult { + public CleanDateTimeResult(string name, int? year) + { + Name = name; + Year = year; + } + + public CleanDateTimeResult(string name) + { + Name = name; + Year = null; + } + /// <summary> - /// Gets or sets the name. + /// Gets the name. /// </summary> /// <value>The name.</value> - public string Name { get; set; } + public string Name { get; } /// <summary> - /// Gets or sets the year. + /// Gets the year. /// </summary> /// <value>The year.</value> - public int? Year { get; set; } - - /// <summary> - /// Gets or sets a value indicating whether this instance has changed. - /// </summary> - /// <value><c>true</c> if this instance has changed; otherwise, <c>false</c>.</value> - public bool HasChanged { get; set; } + public int? Year { get; } } } |
