-
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.
[v2] Add source generator support for enum flags
- Loading branch information
1 parent
9af8bb5
commit 5998a39
Showing
6 changed files
with
199 additions
and
21 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
using System.Text.Json.Serialization; | ||
using TraktNET.SourceGenerators; | ||
|
||
namespace TraktNET | ||
{ | ||
[TraktEnum] | ||
[TraktParameterEnum("extended")] | ||
[Flags] | ||
[JsonConverter(typeof(TraktExtendedInfoJsonConverter))] | ||
public enum TraktExtendedInfo | ||
{ | ||
[TraktEnumMemberJsonValue("")] | ||
None = 0, | ||
|
||
Metadata = 1, | ||
Full = 2, | ||
|
||
[TraktEnumMemberJsonValue("noseasons")] | ||
NoSeasons = 4, | ||
|
||
Episodes = 8, | ||
GuestStars = 16, | ||
Comments = 32, | ||
VIP = 64 | ||
} | ||
} |
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