﻿using Newtonsoft.Json;

namespace FplClient.Data
{
    public class FplPick
    {
        [JsonProperty("element")]
        public int PlayerId { get; set; }

        [JsonProperty("element_type")]
        public int ElementType { get; set; }

        [JsonProperty("position")]
        public FplPlayerPosition Position { get; set; }

        [JsonProperty("points")]
        public int Points { get; set; }

        [JsonProperty("can_captain")]
        public bool? CanCaptain { get; set; }

        [JsonProperty("is_captain")]
        public bool IsCaptain { get; set; }

        [JsonProperty("is_vice_captain")]
        public bool IsViceCaptain { get; set; }

        [JsonProperty("can_sub")]
        public bool? CanSub { get; set; }

        [JsonProperty("is_sub")]
        public bool IsSub { get; set; }

        [JsonProperty("has_played")]
        public bool HasPlayed { get; set; }

        [JsonProperty("stats")]
        public FplPickStats Stats { get; set; }

        [JsonProperty("multiplier")]
        public int Multiplier { get; set; }
    }
}

﻿using Newtonsoft.Json;

namespace FplClient.Data
{
    public class FplPick
    {
        [JsonProperty("element")]
        public int PlayerId { get; set; }

        [JsonProperty("element_type")]
        public int ElementType { get; set; }

        [JsonProperty("position")]
        public int TeamPosition { get; set; }

        [JsonProperty("points")]
        public int Points { get; set; }

        [JsonProperty("can_captain")]
        public bool? CanCaptain { get; set; }

        [JsonProperty("is_captain")]
        public bool IsCaptain { get; set; }

        [JsonProperty("is_vice_captain")]
        public bool IsViceCaptain { get; set; }

        [JsonProperty("can_sub")]
        public bool? CanSub { get; set; }

        [JsonProperty("is_sub")]
        public bool IsSub { get; set; }

        [JsonProperty("has_played")]
        public bool HasPlayed { get; set; }

        [JsonProperty("stats")]
        public FplPickStats Stats { get; set; }

        [JsonProperty("multiplier")]
        public int Multiplier { get; set; }
    }
}

Change Pick 'position' property to int as it represents position in team
Change Pick 'position' property to int as it represents position in team
