<?php

namespace Kendo\Data;

class DataSourceTransportCreate extends \Kendo\SerializableObject {
//>> Properties

    /**
    * If set to false, the request result will not be cached by the browser. Setting cache to false will only work correctly with HEAD and GET requests. It works by appending "_={timestamp}" to the GET parameters. By default, "jsonp" requests are not cached.Refer to the jQuery.ajax documentation for further info.
    * @param boolean $value
    * @return \Kendo\Data\DataSourceTransportCreate
    */
    public function cache($value) {
        return $this->setProperty('cache', $value);
    }

    /**
    * The content-type HTTP header sent to the server. The default is "application/x-www-form-urlencoded". Use "application/json" if the content is JSON. Refer to the jQuery.ajax documentation for further information.
    * @param string $value
    * @return \Kendo\Data\DataSourceTransportCreate
    */
    public function contentType($value) {
        return $this->setProperty('contentType', $value);
    }

    /**
    * Additional parameters that are sent to the remote service. The parameter names must not match reserved words, which are used by the Kendo UI DataSource for sorting, filtering, paging, and grouping.Refer to the jQuery.ajax documentation for further information.
    * @param |\Kendo\JavaScriptFunction $value
    * @return \Kendo\Data\DataSourceTransportCreate
    */
    public function data($value) {
        return $this->setProperty('data', $value);
    }

    /**
    * The type of result expected from the server. Commonly used values are "json" and "jsonp".Refer to the jQuery.ajax documentation for further information.
    * @param string $value
    * @return \Kendo\Data\DataSourceTransportCreate
    */
    public function dataType($value) {
        return $this->setProperty('dataType', $value);
    }

    /**
    * The type of request to make ("POST", "GET", "PUT" or "DELETE"). The default request is "GET".Refer to the jQuery.ajax documentation for further information.
    * @param string $value
    * @return \Kendo\Data\DataSourceTransportCreate
    */
    public function type($value) {
        return $this->setProperty('type', $value);
    }

    /**
    * The URL to which the request is sent.If set to function, the data source will invoke it and use the result as the URL.
    * @param string|\Kendo\JavaScriptFunction $value
    * @return \Kendo\Data\DataSourceTransportCreate
    */
    public function url($value) {
        return $this->setProperty('url', $value);
    }

//<< Properties
}

?>
