###
# ownCloud
#
# @author Bernhard Posselt
# Copyright (c) 2012 - Bernhard Posselt <nukeawhale@gmail.com>
#
# This file is licensed under the Affero General Public License version 3 or later.
# See the COPYING-README file
#
###

# Define your local request functions in an object that inherits from the
# Request object
angular.module('LargeFileUpload').factory '_LargeFileUploadRequest',
['_Request',
(_Request) ->

	class LargeFileUploadRequest extends _Request


		constructor: ($http, Config, Publisher) ->
			super($http, Config, Publisher)


		saveName: (route, name) ->
			data =
				somesetting: name

			@post(route, {}, data)


		getName: (route, scope) ->
			success = (data) ->
				scope.name = data.data.somesetting

			@post(route, {}, {}, success)			

		# Create your local request methods in here
		#
		# myReqest: (route, ...) ->


	return LargeFileUploadRequest
]