var DownloadService=function() {
DownloadService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
DownloadService.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return DownloadService._staticInstance.get_path();},
GetDownloads:function(pageindex,pagesize,succeededCallback, failedCallback, userContext) {
/// <param name="pageindex" type="Number">System.Int32</param>
/// <param name="pagesize" type="Number">System.Int32</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'GetDownloads',false,{pageindex:pageindex,pagesize:pagesize},succeededCallback,failedCallback,userContext); },
DeleteFile:function(filename,succeededCallback, failedCallback, userContext) {
/// <param name="filename" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'DeleteFile',false,{filename:filename},succeededCallback,failedCallback,userContext); },
GetTopDownloads:function(succeededCallback, failedCallback, userContext) {
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'GetTopDownloads',false,{},succeededCallback,failedCallback,userContext); }}
DownloadService.registerClass('DownloadService',Sys.Net.WebServiceProxy);
DownloadService._staticInstance = new DownloadService();
DownloadService.set_path = function(value) {
DownloadService._staticInstance.set_path(value); }
DownloadService.get_path = function() { 
/// <value type="String" mayBeNull="true">The service url.</value>
return DownloadService._staticInstance.get_path();}
DownloadService.set_timeout = function(value) {
DownloadService._staticInstance.set_timeout(value); }
DownloadService.get_timeout = function() { 
/// <value type="Number">The service timeout.</value>
return DownloadService._staticInstance.get_timeout(); }
DownloadService.set_defaultUserContext = function(value) { 
DownloadService._staticInstance.set_defaultUserContext(value); }
DownloadService.get_defaultUserContext = function() { 
/// <value mayBeNull="true">The service default user context.</value>
return DownloadService._staticInstance.get_defaultUserContext(); }
DownloadService.set_defaultSucceededCallback = function(value) { 
 DownloadService._staticInstance.set_defaultSucceededCallback(value); }
DownloadService.get_defaultSucceededCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default succeeded callback.</value>
return DownloadService._staticInstance.get_defaultSucceededCallback(); }
DownloadService.set_defaultFailedCallback = function(value) { 
DownloadService._staticInstance.set_defaultFailedCallback(value); }
DownloadService.get_defaultFailedCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default failed callback.</value>
return DownloadService._staticInstance.get_defaultFailedCallback(); }
DownloadService.set_path("/Services/DownloadService.asmx");
DownloadService.GetDownloads= function(pageindex,pagesize,onSuccess,onFailed,userContext) {
/// <param name="pageindex" type="Number">System.Int32</param>
/// <param name="pagesize" type="Number">System.Int32</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
DownloadService._staticInstance.GetDownloads(pageindex,pagesize,onSuccess,onFailed,userContext); }
DownloadService.DeleteFile= function(filename,onSuccess,onFailed,userContext) {
/// <param name="filename" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
DownloadService._staticInstance.DeleteFile(filename,onSuccess,onFailed,userContext); }
DownloadService.GetTopDownloads= function(onSuccess,onFailed,userContext) {
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
DownloadService._staticInstance.GetTopDownloads(onSuccess,onFailed,userContext); }
