var DataService=function() {
DataService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
DataService.prototype={
GetPhotoList:function(start,max,sortColumn,sortOrder,galleryid,succeededCallback, failedCallback, userContext) {
return this._invoke(DataService.get_path(), 'GetPhotoList',false,{start:start,max:max,sortColumn:sortColumn,sortOrder:sortOrder,galleryid:galleryid},succeededCallback,failedCallback,userContext); },
GetPhotos:function(photoid,succeededCallback, failedCallback, userContext) {
return this._invoke(DataService.get_path(), 'GetPhotos',false,{photoid:photoid},succeededCallback,failedCallback,userContext); },
UpdatePhoto:function(photoid,caption,status,succeededCallback, failedCallback, userContext) {
return this._invoke(DataService.get_path(), 'UpdatePhoto',false,{photoid:photoid,caption:caption,status:status},succeededCallback,failedCallback,userContext); },
MovePhoto:function(photoid,oldIndex,newIndex,succeededCallback, failedCallback, userContext) {
return this._invoke(DataService.get_path(), 'MovePhoto',false,{photoid:photoid,oldIndex:oldIndex,newIndex:newIndex},succeededCallback,failedCallback,userContext); },
DeletePhoto:function(photoid,filepath,succeededCallback, failedCallback, userContext) {
return this._invoke(DataService.get_path(), 'DeletePhoto',false,{photoid:photoid,filepath:filepath},succeededCallback,failedCallback,userContext); },
LoggedContact:function(toEmail,fromEmail,subject,name,body,sourcePage,succeededCallback, failedCallback, userContext) {
return this._invoke(DataService.get_path(), 'LoggedContact',false,{toEmail:toEmail,fromEmail:fromEmail,subject:subject,name:name,body:body,sourcePage:sourcePage},succeededCallback,failedCallback,userContext); }}
DataService.registerClass('DataService',Sys.Net.WebServiceProxy);
DataService._staticInstance = new DataService();
DataService.set_path = function(value) { 
var e = Function._validateParams(arguments, [{name: 'path', type: String}]); if (e) throw e; DataService._staticInstance._path = value; }
DataService.get_path = function() { return DataService._staticInstance._path; }
DataService.set_timeout = function(value) { var e = Function._validateParams(arguments, [{name: 'timeout', type: Number}]); if (e) throw e; if (value < 0) { throw Error.argumentOutOfRange('value', value, Sys.Res.invalidTimeout); }
DataService._staticInstance._timeout = value; }
DataService.get_timeout = function() { 
return DataService._staticInstance._timeout; }
DataService.set_defaultUserContext = function(value) { 
DataService._staticInstance._userContext = value; }
DataService.get_defaultUserContext = function() { 
return DataService._staticInstance._userContext; }
DataService.set_defaultSucceededCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultSucceededCallback', type: Function}]); if (e) throw e; DataService._staticInstance._succeeded = value; }
DataService.get_defaultSucceededCallback = function() { 
return DataService._staticInstance._succeeded; }
DataService.set_defaultFailedCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultFailedCallback', type: Function}]); if (e) throw e; DataService._staticInstance._failed = value; }
DataService.get_defaultFailedCallback = function() { 
return DataService._staticInstance._failed; }
DataService.set_path("/DataService.asmx");
DataService.GetPhotoList= function(start,max,sortColumn,sortOrder,galleryid,onSuccess,onFailed,userContext) {DataService._staticInstance.GetPhotoList(start,max,sortColumn,sortOrder,galleryid,onSuccess,onFailed,userContext); }
DataService.GetPhotos= function(photoid,onSuccess,onFailed,userContext) {DataService._staticInstance.GetPhotos(photoid,onSuccess,onFailed,userContext); }
DataService.UpdatePhoto= function(photoid,caption,status,onSuccess,onFailed,userContext) {DataService._staticInstance.UpdatePhoto(photoid,caption,status,onSuccess,onFailed,userContext); }
DataService.MovePhoto= function(photoid,oldIndex,newIndex,onSuccess,onFailed,userContext) {DataService._staticInstance.MovePhoto(photoid,oldIndex,newIndex,onSuccess,onFailed,userContext); }
DataService.DeletePhoto= function(photoid,filepath,onSuccess,onFailed,userContext) {DataService._staticInstance.DeletePhoto(photoid,filepath,onSuccess,onFailed,userContext); }
DataService.LoggedContact= function(toEmail,fromEmail,subject,name,body,sourcePage,onSuccess,onFailed,userContext) {DataService._staticInstance.LoggedContact(toEmail,fromEmail,subject,name,body,sourcePage,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
if (typeof(Photo) === 'undefined') {
var Photo=gtc("Photo");
Photo.registerClass('Photo');
}
