# `ExFPL.Player`
[🔗](https://github.com/sgerrand/ex_fpl/blob/main/lib/ex_fpl/player.ex#L1)

A player ("element" in ExFPL parlance) as returned by `/bootstrap-static/`.

`team_id` is the ExFPL team integer; cross-reference against the `:teams`
field of `t:ExFPL.Snapshot.t/0` to look up the team. `element_type` is the
position code (1=GK, 2=DEF, 3=MID, 4=FWD).

# `t`

```elixir
@type t() :: %ExFPL.Player{
  assists: integer(),
  bonus: integer(),
  bps: integer(),
  chance_of_playing_next_round: integer() | nil,
  chance_of_playing_this_round: integer() | nil,
  clean_sheets: integer(),
  code: integer(),
  creativity: String.t(),
  element_type: integer(),
  ep_next: String.t() | nil,
  ep_this: String.t() | nil,
  expected_assists: String.t() | nil,
  expected_goals: String.t() | nil,
  first_name: String.t(),
  form: String.t(),
  goals_conceded: integer(),
  goals_scored: integer(),
  ict_index: String.t(),
  id: integer(),
  in_dreamteam: boolean(),
  influence: String.t(),
  minutes: integer(),
  news: String.t() | nil,
  now_cost: integer(),
  own_goals: integer(),
  penalties_missed: integer(),
  penalties_saved: integer(),
  points_per_game: String.t(),
  red_cards: integer(),
  saves: integer(),
  second_name: String.t(),
  selected_by_percent: String.t(),
  status: String.t(),
  team_id: integer(),
  threat: String.t(),
  total_points: integer(),
  web_name: String.t(),
  yellow_cards: integer()
}
```

---

*Consult [api-reference.md](api-reference.md) for complete listing*
