-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Resolves GH-98
- Loading branch information
Showing
26 changed files
with
515 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
namespace TraktNet.Enums | ||
{ | ||
/// <summary>Determines the HDR type in a collection item's metadata.</summary> | ||
public sealed class TraktMediaHDR : TraktEnumeration | ||
{ | ||
/// <summary>An invalid HDR type.</summary> | ||
public static TraktMediaHDR Unspecified { get; } = new TraktMediaHDR(); | ||
|
||
/// <summary>The collection item supports DolbyVision.</summary> | ||
public static TraktMediaHDR DolbyVision { get; } = new TraktMediaHDR(1, "dolby_vision", "dolby_vision", "Dolby Vision"); | ||
|
||
/// <summary>The collection item supports HDR10.</summary> | ||
public static TraktMediaHDR HDR_10 { get; } = new TraktMediaHDR(2, "hdr10", "hdr10", "HDR10"); | ||
|
||
/// <summary>The collection item supports HDR10 Plus.</summary> | ||
public static TraktMediaHDR HDR_10_Plus { get; } = new TraktMediaHDR(4, "hdr10_plus", "hdr10_plus", "HDR10 Plus"); | ||
|
||
/// <summary>The collection item supports HLG.</summary> | ||
public static TraktMediaHDR HLG { get; } = new TraktMediaHDR(8, "hlg", "hlg", "HLG"); | ||
|
||
/// <summary> | ||
/// Initializes a new instance of the <see cref="TraktMediaHDR" /> class.<para /> | ||
/// The initialized <see cref="TraktMediaHDR" /> is invalid. | ||
/// </summary> | ||
public TraktMediaHDR() | ||
{ | ||
} | ||
|
||
private TraktMediaHDR(int value, string objectName, string uriName, string displayName) : base(value, objectName, uriName, displayName) | ||
{ | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
namespace TraktNet.Tests.Enums | ||
{ | ||
using FluentAssertions; | ||
using System.Collections.Generic; | ||
using Traits; | ||
using TraktNet.Enums; | ||
using Xunit; | ||
|
||
[Category("Enums")] | ||
public class TraktMediaHDR_Tests | ||
{ | ||
[Fact] | ||
public void Test_TraktMediaHDR_GetAll() | ||
{ | ||
var allValues = TraktEnumeration.GetAll<TraktMediaHDR>(); | ||
|
||
allValues.Should().NotBeNull().And.HaveCount(5); | ||
allValues.Should().Contain(new List<TraktMediaHDR>() { TraktMediaHDR.Unspecified, TraktMediaHDR.DolbyVision, | ||
TraktMediaHDR.HDR_10, TraktMediaHDR.HDR_10_Plus, | ||
TraktMediaHDR.HLG }); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.