package com.podio.item;

import java.util.List;

import org.codehaus.jackson.annotate.JsonProperty;

public class ItemUpdate {

	/**
	 * The external id of the item. This can be used to hold a reference to the
	 * item in an external system.
	 */
	private String externalId;

	/**
	 * The values for each field
	 */
	private List<FieldValuesUpdate> fields;

	public ItemUpdate() {
		super();
	}

	public ItemUpdate(String externalId, List<FieldValuesUpdate> fields) {
		super();
		this.externalId = externalId;
		this.fields = fields;
	}

	@JsonProperty("external_id")
	public String getExternalId() {
		return externalId;
	}

	@JsonProperty("external_id")
	public void setExternalId(String externalId) {
		this.externalId = externalId;
	}

	public List<FieldValuesUpdate> getFields() {
		return fields;
	}

	public void setFields(List<FieldValuesUpdate> fields) {
		this.fields = fields;
	}
}

@@ -269,16 +269,88 @@
 nalId;%0A%0A
+%09/**%0A%09 * The internal revision from podio.%0A%09 */%0A%09private int revision;%0A%0A
 %09/**%0A%09 *
@@ -800,24 +800,203 @@
 ternalId;%0A%09%7D
+%0A%09%0A%09@JsonProperty(%22revision%22)%0A%09public int getRevision() %7B%0A%09%09return revision;%0A%09%7D%0A%0A%09@JsonProperty(%22revision%22)%0A%09public void setRevision(int revision) %7B%0A%09%09this.revision = revision;%0A%09%7D
 %0A%0A%09public Li

support for revision in in update items