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

com.twilio.sdk.parser.ResponseParser Maven / Gradle / Ivy

There is a newer version: 7.0.0-rc-10
Show newest version
package com.twilio.sdk.parser;

import com.twilio.sdk.TwilioRestResponse;

import java.util.Map;

// TODO: Auto-generated Javadoc
/**
 * The Interface ResponseParser.
 */
public interface ResponseParser {
	
	/**
	 * The Enum PagingProperty.
	 */
	public enum PagingProperty {
		
		/** The NEX t_ pag e_ ur i_ key. */
		NEXT_PAGE_URI_KEY,
		
		/** The STAR t_ key. */
		START_KEY,
		
		/** The EN d_ key. */
		END_KEY,
		
		/** The PAG e_ key. */
		PAGE_KEY,
		
		/** The NU m_ page s_ key. */
		NUM_PAGES_KEY,
		
		/** The TOTA l_ key. */
		TOTAL_KEY,
	}
	
	/**
	 * Parses the.
	 *
	 * @param response the response
	 * @return the map
	 */
	public Map parse(TwilioRestResponse response); 
	
	/**
	 * Gets the paging property key.
	 *
	 * @param prop the prop
	 * @return the paging property key
	 */
	public String getPagingPropertyKey(PagingProperty prop);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy