Skip to content

Commit

Permalink
Added default value to Season State
Browse files Browse the repository at this point in the history
  • Loading branch information
Gavin Power committed Dec 12, 2018
1 parent 1809ef1 commit 59183f2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/pubg-dotnet/Models/Seasons/PubgSeasonState.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using Pubg.Net.Infrastructure.Attributes;
using Pubg.Net.Infrastructure.JsonConverters;
using System.Runtime.Serialization;

namespace Pubg.Net.Models.Seasons
{
[JsonConverter(typeof(StringEnumConverter))]
[JsonConverter(typeof(DefaultValueStringEnumConverter))]
public enum PubgSeasonState
{
[DefaultEnumMember]
Unknown,
[EnumMember(Value = "closed")]
Closed,
[EnumMember(Value = "prepare")]
Expand Down

0 comments on commit 59183f2

Please sign in to comment.