/*jslint plusplus: true, white: true, indent: 2, maxlen: 90 */
/*global $wk$ */
/**
* @author Wolfgang Kowarschick
* @copyright 2012-2013, Wolfgang Kowarschick
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted under the terms of the
* Creative Commons License Attribution-NonCommercial-ShareAlike 3.0 Unported
* (CC BY-NC-SA 3.0: http://creativecommons.org/licenses/by-nc-sa/3.0/).
*/
////////////////////////////////////////////////////////////////////////////////
// Class "$wk$.vclsd.service.WKcService"
////////////////////////////////////////////////////////////////////////////////
$wk$("$wk$.WKcClass", "$wk$.vclsd.service.WKcService",
function($)
{ "use strict";
/**
* <code>WKcServiceJSON</code> objects can be used to exchange JSON data with
* external data servers.
*
* @class
* @name $wk$.vclsd.service.WKcServiceJSON
* @augments $wk$.vclsd.service.WKcService
* @returns {Object} A new service object.
*/
var WKcServiceJSON =
$wk$.WKcClass
({fullName: "$wk$.vclsd.service.WKcServiceJSON",
mixin: "$wk$.vclsd.service.WKcService",
methods:
{ /**
* Asynchronosly exchanges data with an external data server.
*
* @method
* @name $wk$.vclsd.service.WKcServiceJSON#json
*
* @param {String} p_args.p_url
* The URL of the external data source.
* @param {String} [p_args.p_synchronosly = false]
* Indicates, whether the data is exchaned
* synchronosly or asynchronosly.
* @param {String} [p_args.p_data_in = this.data || null]
* A data object into which the data can be put.
* @param {String} [p_args.p_attr_in = null]
* The attribute of the data object into which
* the result is put.
* @param {String} [p_args.p_data_out = null]
* A data object into which the data can be put.
* @param {String} [p_args.p_attr_out = null]
* The attribute of the data object into which
* the result is put.
* @param {String} [p_args.p_response_type = 'text']
* A data object into which the data can be put.
* @param {String} [p_args.p_event = $E$.DATA_CHANGED]
* The event type dispatched by <code>p_data</code>
* after it has been changed
* @param {String} [p_args.p_request_method = "get"]
* The request method: <code>"get"</code> oder
* <code>"post"</code>.
*/
json:
function(p_args)
{
}
}
});
$.moduleAdd({ name: "$wk$.vclsd.service.WKcServiceJSON",
module: { WKcServiceJSON: WKcServiceJSON }
});
});
////////////////////////////////////////////////////////////////////////////////
// End of Class "$wk$.ldvcs.service.WKcServiceJSON"
////////////////////////////////////////////////////////////////////////////////