package valandur.webapi.json.request.player;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import valandur.webapi.json.request.entity.UpdateEntityRequest;

@JsonDeserialize
public class UpdatePlayerRequest extends UpdateEntityRequest {

    @JsonDeserialize
    private Integer foodLevel;
    public Integer getFoodLevel() {
        return foodLevel;
    }

    @JsonDeserialize
    private Double saturation;
    public Double getSaturation() {
        return saturation;
    }

    @JsonDeserialize
    private Double exhaustion;
    public Double getExhaustion() {
        return exhaustion;
    }

    @JsonDeserialize
    private Integer totalExperience;
    public Integer getTotalExperience() {
        return totalExperience;
    }

    @JsonDeserialize
    private Integer level;
    public Integer getLevel() {
        return level;
    }

    @JsonDeserialize
    private Integer experienceSinceLevel;
    public Integer getExperienceSinceLevel() {
        return experienceSinceLevel;
    }
}

@@ -1059,12 +1059,253 @@
 %0D%0A    %7D%0D
+%0A%0D%0A    @JsonDeserialize%0D%0A    private Double health;%0D%0A    public Double getHealth() %7B%0D%0A        return health;%0D%0A    %7D%0D%0A%0D%0A    @JsonDeserialize%0D%0A    private Double maxHealth;%0D%0A    public Double getMaxHealth() %7B%0D%0A        return maxHealth;%0D%0A    %7D%0D
 %0A%7D%0D%0A

Implement setting player health and max health