package com.temboo.Library.eBay.Trading;

/*
Copyright 2014 Temboo, Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

import processing.data.JSONArray;
import processing.data.JSONObject;
import java.math.BigDecimal;
import com.temboo.core.Choreography.ResultSet;

	
/**
	A ResultSet with methods tailored to the values returned by the GetItem Choreo.
	The ResultSet object is used to retrieve the results of a Choreo execution.
*/
public  class GetItemResultSet extends ResultSet {
		
	public GetItemResultSet(JSONObject doc) {
		super(doc);
	}

	/** 
	Retrieve the value for the "CurrentPrice" output from this Choreo execution

	@return String - (decimal) The current price for the item.
	*/
	public String getCurrentPrice() {
		return this.getResultString("CurrentPrice");
	}
	/** 
	Retrieve the value for the "DaysLeft" output from this Choreo execution

	@return String - (integer) The number of days until the auction ends.
	*/
	public String getDaysLeft() {
		return this.getResultString("DaysLeft");
	}
	/** 
	Retrieve the value for the "HoursLeft" output from this Choreo execution

	@return String - (integer) The number of hours until the auction ends.
	*/
	public String getHoursLeft() {
		return this.getResultString("HoursLeft");
	}
	/** 
	Retrieve the value for the "MinutesLeft" output from this Choreo execution

	@return String - (integer) The number of minutes until the auction ends.
	*/
	public String getMinutesLeft() {
		return this.getResultString("MinutesLeft");
	}
	/** 
	Retrieve the value for the "SecondsLeft" output from this Choreo execution

	@return String - (integer) The number of seconds until the auction ends.
	*/
	public String getSecondsLeft() {
		return this.getResultString("SecondsLeft");
	}
	/** 
	Retrieve the value for the "Response" output from this Choreo execution

	@return String - The response from eBay.
	*/
	public String getResponse() {
		return this.getResultString("Response");
	}
}