Type.registerNamespace('MyCode');
MyCode.AjaxPhotoService=function() {
MyCode.AjaxPhotoService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
MyCode.AjaxPhotoService.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return MyCode.AjaxPhotoService._staticInstance.get_path();},
AddNewSize:function(PhotoID,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'AddNewSize',true,{PhotoID:PhotoID},succeededCallback,failedCallback,userContext); },
RemoveImage:function(PhotoID,SessionIDer,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'RemoveImage',true,{PhotoID:PhotoID,SessionIDer:SessionIDer},succeededCallback,failedCallback,userContext); },
UpdateTotal:function(Quantity,Width,Height,Coating,Type,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'UpdateTotal',true,{Quantity:Quantity,Width:Width,Height:Height,Coating:Coating,Type:Type},succeededCallback,failedCallback,userContext); },
CropImage:function(PhotoID,cropX,cropY,cropWidth,cropHeight,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'CropImage',true,{PhotoID:PhotoID,cropX:cropX,cropY:cropY,cropWidth:cropWidth,cropHeight:cropHeight},succeededCallback,failedCallback,userContext); },
GetPhotos:function(PhotoID,VOride,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetPhotos',true,{PhotoID:PhotoID,VOride:VOride},succeededCallback,failedCallback,userContext); },
RotateImage:function(PhotoID,RotationDirection,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'RotateImage',true,{PhotoID:PhotoID,RotationDirection:RotationDirection},succeededCallback,failedCallback,userContext); }}
MyCode.AjaxPhotoService.registerClass('MyCode.AjaxPhotoService',Sys.Net.WebServiceProxy);
MyCode.AjaxPhotoService._staticInstance = new MyCode.AjaxPhotoService();
MyCode.AjaxPhotoService.set_path = function(value) { MyCode.AjaxPhotoService._staticInstance.set_path(value); }
MyCode.AjaxPhotoService.get_path = function() { return MyCode.AjaxPhotoService._staticInstance.get_path(); }
MyCode.AjaxPhotoService.set_timeout = function(value) { MyCode.AjaxPhotoService._staticInstance.set_timeout(value); }
MyCode.AjaxPhotoService.get_timeout = function() { return MyCode.AjaxPhotoService._staticInstance.get_timeout(); }
MyCode.AjaxPhotoService.set_defaultUserContext = function(value) { MyCode.AjaxPhotoService._staticInstance.set_defaultUserContext(value); }
MyCode.AjaxPhotoService.get_defaultUserContext = function() { return MyCode.AjaxPhotoService._staticInstance.get_defaultUserContext(); }
MyCode.AjaxPhotoService.set_defaultSucceededCallback = function(value) { MyCode.AjaxPhotoService._staticInstance.set_defaultSucceededCallback(value); }
MyCode.AjaxPhotoService.get_defaultSucceededCallback = function() { return MyCode.AjaxPhotoService._staticInstance.get_defaultSucceededCallback(); }
MyCode.AjaxPhotoService.set_defaultFailedCallback = function(value) { MyCode.AjaxPhotoService._staticInstance.set_defaultFailedCallback(value); }
MyCode.AjaxPhotoService.get_defaultFailedCallback = function() { return MyCode.AjaxPhotoService._staticInstance.get_defaultFailedCallback(); }
MyCode.AjaxPhotoService.set_path("/services.asmx");
MyCode.AjaxPhotoService.AddNewSize= function(PhotoID,onSuccess,onFailed,userContext) {MyCode.AjaxPhotoService._staticInstance.AddNewSize(PhotoID,onSuccess,onFailed,userContext); }
MyCode.AjaxPhotoService.RemoveImage= function(PhotoID,SessionIDer,onSuccess,onFailed,userContext) {MyCode.AjaxPhotoService._staticInstance.RemoveImage(PhotoID,SessionIDer,onSuccess,onFailed,userContext); }
MyCode.AjaxPhotoService.UpdateTotal= function(Quantity,Width,Height,Coating,Type,onSuccess,onFailed,userContext) {MyCode.AjaxPhotoService._staticInstance.UpdateTotal(Quantity,Width,Height,Coating,Type,onSuccess,onFailed,userContext); }
MyCode.AjaxPhotoService.CropImage= function(PhotoID,cropX,cropY,cropWidth,cropHeight,onSuccess,onFailed,userContext) {MyCode.AjaxPhotoService._staticInstance.CropImage(PhotoID,cropX,cropY,cropWidth,cropHeight,onSuccess,onFailed,userContext); }
MyCode.AjaxPhotoService.GetPhotos= function(PhotoID,VOride,onSuccess,onFailed,userContext) {MyCode.AjaxPhotoService._staticInstance.GetPhotos(PhotoID,VOride,onSuccess,onFailed,userContext); }
MyCode.AjaxPhotoService.RotateImage= function(PhotoID,RotationDirection,onSuccess,onFailed,userContext) {MyCode.AjaxPhotoService._staticInstance.RotateImage(PhotoID,RotationDirection,onSuccess,onFailed,userContext); }

