package com.temboo.Library.Facebook.Reading;

/*
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 GetLatestPrivateMessage Choreo.
	The ResultSet object is used to retrieve the results of a Choreo execution.
*/
public  class GetLatestPrivateMessageResultSet extends ResultSet {
		
	public GetLatestPrivateMessageResultSet(JSONObject doc) {
		super(doc);
	}

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

	@return String - (date) The date that the latest message was created.
	*/
	public String getCreatedTime() {
		return this.getResultString("CreatedTime");
	}
	/** 
	Retrieve the value for the "FromID" output from this Choreo execution

	@return String - (string) The ID of the message sender.
	*/
	public String getFromID() {
		return this.getResultString("FromID");
	}
	/** 
	Retrieve the value for the "FromName" output from this Choreo execution

	@return String - (string) The name of the message sender.
	*/
	public String getFromName() {
		return this.getResultString("FromName");
	}
	/** 
	Retrieve the value for the "ID" output from this Choreo execution

	@return String - (string) The ID of the message.
	*/
	public String getID() {
		return this.getResultString("ID");
	}
	/** 
	Retrieve the value for the "Message" output from this Choreo execution

	@return String - (string) The latest private message.
	*/
	public String getMessage() {
		return this.getResultString("Message");
	}
	/** 
	Retrieve the value for the "Response" output from this Choreo execution

	@return String - The response from Facebook. Corresponds to the ResponseFormat input. Defaults to JSON.
	*/
	public String getResponse() {
		return this.getResultString("Response");
	}
}