Type.registerNamespace('MSE.Dnn.Gallery');
MSE.Dnn.Gallery.GalleryService=function() {
MSE.Dnn.Gallery.GalleryService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
MSE.Dnn.Gallery.GalleryService.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return MSE.Dnn.Gallery.GalleryService._staticInstance.get_path();},
GetAlbum:function(id,htmlformat,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetAlbum',false,{id:id,htmlformat:htmlformat},succeededCallback,failedCallback,userContext); },
SaveAlbum:function(album,errMsg,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'SaveAlbum',false,{album:album,errMsg:errMsg},succeededCallback,failedCallback,userContext); },
DeleteAlbum:function(id,err,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'DeleteAlbum',false,{id:id,err:err},succeededCallback,failedCallback,userContext); },
GetPhoto:function(id,htmlformat,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetPhoto',false,{id:id,htmlformat:htmlformat},succeededCallback,failedCallback,userContext); },
GetNextPhoto:function(albumId,prevPhotoPosition,htmlFormat,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetNextPhoto',false,{albumId:albumId,prevPhotoPosition:prevPhotoPosition,htmlFormat:htmlFormat},succeededCallback,failedCallback,userContext); },
GetPrevPhoto:function(albumId,nextPhotoPosition,htmlFormat,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetPrevPhoto',false,{albumId:albumId,nextPhotoPosition:nextPhotoPosition,htmlFormat:htmlFormat},succeededCallback,failedCallback,userContext); },
GetProperties:function(moduleid,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetProperties',false,{moduleid:moduleid},succeededCallback,failedCallback,userContext); },
GetSessionInfo:function(moduleid,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetSessionInfo',false,{moduleid:moduleid},succeededCallback,failedCallback,userContext); }}
MSE.Dnn.Gallery.GalleryService.registerClass('MSE.Dnn.Gallery.GalleryService',Sys.Net.WebServiceProxy);
MSE.Dnn.Gallery.GalleryService._staticInstance = new MSE.Dnn.Gallery.GalleryService();
MSE.Dnn.Gallery.GalleryService.set_path = function(value) { MSE.Dnn.Gallery.GalleryService._staticInstance.set_path(value); }
MSE.Dnn.Gallery.GalleryService.get_path = function() { return MSE.Dnn.Gallery.GalleryService._staticInstance.get_path(); }
MSE.Dnn.Gallery.GalleryService.set_timeout = function(value) { MSE.Dnn.Gallery.GalleryService._staticInstance.set_timeout(value); }
MSE.Dnn.Gallery.GalleryService.get_timeout = function() { return MSE.Dnn.Gallery.GalleryService._staticInstance.get_timeout(); }
MSE.Dnn.Gallery.GalleryService.set_defaultUserContext = function(value) { MSE.Dnn.Gallery.GalleryService._staticInstance.set_defaultUserContext(value); }
MSE.Dnn.Gallery.GalleryService.get_defaultUserContext = function() { return MSE.Dnn.Gallery.GalleryService._staticInstance.get_defaultUserContext(); }
MSE.Dnn.Gallery.GalleryService.set_defaultSucceededCallback = function(value) { MSE.Dnn.Gallery.GalleryService._staticInstance.set_defaultSucceededCallback(value); }
MSE.Dnn.Gallery.GalleryService.get_defaultSucceededCallback = function() { return MSE.Dnn.Gallery.GalleryService._staticInstance.get_defaultSucceededCallback(); }
MSE.Dnn.Gallery.GalleryService.set_defaultFailedCallback = function(value) { MSE.Dnn.Gallery.GalleryService._staticInstance.set_defaultFailedCallback(value); }
MSE.Dnn.Gallery.GalleryService.get_defaultFailedCallback = function() { return MSE.Dnn.Gallery.GalleryService._staticInstance.get_defaultFailedCallback(); }
MSE.Dnn.Gallery.GalleryService.set_path("/DesktopModules/MSEGallery/GalleryService.asmx");
MSE.Dnn.Gallery.GalleryService.GetAlbum= function(id,htmlformat,onSuccess,onFailed,userContext) {MSE.Dnn.Gallery.GalleryService._staticInstance.GetAlbum(id,htmlformat,onSuccess,onFailed,userContext); }
MSE.Dnn.Gallery.GalleryService.SaveAlbum= function(album,errMsg,onSuccess,onFailed,userContext) {MSE.Dnn.Gallery.GalleryService._staticInstance.SaveAlbum(album,errMsg,onSuccess,onFailed,userContext); }
MSE.Dnn.Gallery.GalleryService.DeleteAlbum= function(id,err,onSuccess,onFailed,userContext) {MSE.Dnn.Gallery.GalleryService._staticInstance.DeleteAlbum(id,err,onSuccess,onFailed,userContext); }
MSE.Dnn.Gallery.GalleryService.GetPhoto= function(id,htmlformat,onSuccess,onFailed,userContext) {MSE.Dnn.Gallery.GalleryService._staticInstance.GetPhoto(id,htmlformat,onSuccess,onFailed,userContext); }
MSE.Dnn.Gallery.GalleryService.GetNextPhoto= function(albumId,prevPhotoPosition,htmlFormat,onSuccess,onFailed,userContext) {MSE.Dnn.Gallery.GalleryService._staticInstance.GetNextPhoto(albumId,prevPhotoPosition,htmlFormat,onSuccess,onFailed,userContext); }
MSE.Dnn.Gallery.GalleryService.GetPrevPhoto= function(albumId,nextPhotoPosition,htmlFormat,onSuccess,onFailed,userContext) {MSE.Dnn.Gallery.GalleryService._staticInstance.GetPrevPhoto(albumId,nextPhotoPosition,htmlFormat,onSuccess,onFailed,userContext); }
MSE.Dnn.Gallery.GalleryService.GetProperties= function(moduleid,onSuccess,onFailed,userContext) {MSE.Dnn.Gallery.GalleryService._staticInstance.GetProperties(moduleid,onSuccess,onFailed,userContext); }
MSE.Dnn.Gallery.GalleryService.GetSessionInfo= function(moduleid,onSuccess,onFailed,userContext) {MSE.Dnn.Gallery.GalleryService._staticInstance.GetSessionInfo(moduleid,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
if (typeof(MSE.Dnn.Gallery.Album) === 'undefined') {
MSE.Dnn.Gallery.Album=gtc("MSE.Dnn.Gallery.Album");
MSE.Dnn.Gallery.Album.registerClass('MSE.Dnn.Gallery.Album');
}
if (typeof(MSE.Dnn.Gallery.Photo) === 'undefined') {
MSE.Dnn.Gallery.Photo=gtc("MSE.Dnn.Gallery.Photo");
MSE.Dnn.Gallery.Photo.registerClass('MSE.Dnn.Gallery.Photo');
}
if (typeof(MSE.Dnn.Gallery.GalleryProperties) === 'undefined') {
MSE.Dnn.Gallery.GalleryProperties=gtc("MSE.Dnn.Gallery.GalleryProperties");
MSE.Dnn.Gallery.GalleryProperties.registerClass('MSE.Dnn.Gallery.GalleryProperties');
}
if (typeof(MSE.Dnn.Gallery.SessionInfo) === 'undefined') {
MSE.Dnn.Gallery.SessionInfo=gtc("MSE.Dnn.Gallery.SessionInfo");
MSE.Dnn.Gallery.SessionInfo.registerClass('MSE.Dnn.Gallery.SessionInfo');
}

