You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
1.2 KiB
Java
43 lines
1.2 KiB
Java
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<ChangeKeyItem> changedItems = new ArrayList<ChangeKeyItem>();
|
|
private Map<String, Object> newItems = new HashMap<String, Object>();
|
|
|
|
public List<ChangeKeyItem> getChangedItems() {
|
|
return changedItems;
|
|
}
|
|
|
|
public void setChangedItems(List<ChangeKeyItem> changes) {
|
|
this.changedItems = changes;
|
|
}
|
|
|
|
@JsonAnyGetter
|
|
public Map<String, Object> 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);
|
|
}
|
|
}
|