package com.mendeley.api.params;

/**
 * Superclass of RequestParameters objects
 *
 */
public class MendeleyRequest {

	/**
	 * Available document views 
	 */
	public static enum View {
		/**
		 * bib
		 */
		BIB("bib"),
		/**
		 * client
		 */
		CLIENT("client"),
		/**
		 * all
		 */
		ALL("all");
		
		private final String value;		
		View(String value) {
			this.value = value;
		}		
		public String getValue() {
			return value;
		}		
		@Override 
		public String toString() {
			return value;
		}
	}
	
	/**
	 * Available order types;
	 */
	public static enum Order {
		/**
		 * Ascending order.
		 */
		ASC("asc"),
		/**
		 * Descending order.
		 */
		DESC("desc");
		
		private final String value;		
		Order(String value) {
			this.value = value;
		}		
		public String getValue() {
			return value;
		}		
		@Override 
		public String toString() {
			return value;
		}
	}
	
	/**
	 * Available sort types;
	 */
	public static enum Sort {
		/**
		 * modified.
		 */
		MODIFIED("modified"),
		/**
		 * added.
		 */
		ADDED("added"),
		/**
		 * title.
		 */
		TITLE("title");
		
		private final String value;		
		Sort(String value) {
			this.value = value;
		}		
		public String getValue() {
			return value;
		}		
		@Override 
		public String toString() {
			return value;
		}
	}
}

@@ -975,16 +975,21 @@
 DIFIED(%22
+last_
 modified
@@ -1025,19 +1025,21 @@
 %09ADDED(%22
-add
+creat
 ed%22),%0A%09%09

Update last modified and sort order strings for Platform API change.