/**
 * Appcelerator Platform SDK
 * Copyright (c) 2014 by Appcelerator, Inc. All Rights Reserved.
 * Proprietary and Confidential - This source code is not for redistribution
 */

#import <Foundation/Foundation.h>

/**
 * The APSResponse object contains the server reponse data for a REST request.
 */
@interface APSResponse : NSObject


/** Full server response as a string */
@property (nonatomic, readonly) NSString *responseString;

/** Metadata response from the server */
@property (nonatomic, readonly) NSDictionary *meta;

/** Response data of the request if it contains only one REST object */
@property (nonatomic, readonly) NSDictionary *response;

/** Indicates if the request was successful */
@property (nonatomic, readonly) BOOL success;

/** Response code */
@property (nonatomic, readonly) NSInteger code;

/** Error message if the request failed */
@property (nonatomic, readonly) NSString *errorMessage;


@end
