All Downloads are FREE. Search and download functionalities are using the official Maven repository.

hirezapi.smite.json.Description Maven / Gradle / Ivy

The newest version!
package hirezapi.smite.json;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonRootName;
import com.fasterxml.jackson.databind.PropertyNamingStrategy;
import com.fasterxml.jackson.databind.annotation.JsonNaming;
import java.io.Serializable;
import java.util.AbstractMap;
import java.util.List;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;


@Data
@NoArgsConstructor
@AllArgsConstructor
@JsonRootName("itemDescription")
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonNaming(value = PropertyNamingStrategy.SnakeCaseStrategy.class)
public class Description implements Serializable {
  private String cooldown;
  private String cost;
  private String description;
  private List menuItems;
  private List rankItems;

  public static class Item extends AbstractMap.SimpleImmutableEntry {
    public Item(@JsonProperty("description") String key, @JsonProperty("value") String value) {
      super(key, value);
    }
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy