Upgrade to ExtJS 3.2.0 - Released 03/30/2010
[extjs.git] / src / data / Response.js
1 /*!
2  * Ext JS Library 3.2.0
3  * Copyright(c) 2006-2010 Ext JS, Inc.
4  * licensing@extjs.com
5  * http://www.extjs.com/license
6  */
7 /**
8  * @class Ext.data.Response
9  * A generic response class to normalize response-handling internally to the framework.
10  */
11 Ext.data.Response = function(params) {
12     Ext.apply(this, params);
13 };
14 Ext.data.Response.prototype = {
15     /**
16      * @cfg {String} action {@link Ext.data.Api#actions}
17      */
18     action: undefined,
19     /**
20      * @cfg {Boolean} success
21      */
22     success : undefined,
23     /**
24      * @cfg {String} message
25      */
26     message : undefined,
27     /**
28      * @cfg {Array/Object} data
29      */
30     data: undefined,
31     /**
32      * @cfg {Object} raw The raw response returned from server-code
33      */
34     raw: undefined,
35     /**
36      * @cfg {Ext.data.Record/Ext.data.Record[]} records related to the Request action
37      */
38     records: undefined
39 };