package com.omertron.themoviedbapi.wrapper; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonProperty; import com.omertron.themoviedbapi.model.ChangeKeyItem; import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToStringStyle; public class WrapperChanges { @JsonProperty("changes") private List changedItems = new ArrayList(); private Map newItems = new HashMap(); public List getChangedItems() { return changedItems; } public void setChangedItems(List changes) { this.changedItems = changes; } @JsonAnyGetter public Map getNewItems() { return this.newItems; } @JsonAnySetter public void setNewItems(String name, Object value) { this.newItems.put(name, value); } @Override public String toString() { return ToStringBuilder.reflectionToString(this, ToStringStyle.DEFAULT_STYLE); } }