Skip to content

Commit

Permalink
Fix pokemon size issue
Browse files Browse the repository at this point in the history
  • Loading branch information
versx committed May 30, 2021
1 parent ce0e10e commit 3db1897
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/Data/Subscriptions/Models/PokemonSubscription.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,18 @@ public class PokemonSubscription : SubscriptionItem
]
public string Gender { get; set; }

[
JsonIgnore,
Ignore,
]
public PokemonSize Size => (PokemonSize)_Size;

[
JsonProperty("size"),
Alias("size"),
Default(0),
Default((uint)PokemonSize.All),
]
public PokemonSize Size { get; set; }
public uint _Size { get; set; }

[
JsonProperty("city"),
Expand Down Expand Up @@ -107,7 +113,7 @@ public PokemonSubscription()
MinimumLevel = 0;
MaximumLevel = 35;
Gender = "*";
Size = PokemonSize.All;
_Size = (uint)PokemonSize.All;
Form = null;
Areas = new List<string>();
IVList = new List<string>();
Expand Down

0 comments on commit 3db1897

Please sign in to comment.