Type.registerNamespace('Gsp');
Gsp.Gallery=function() {
Gsp.Gallery.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
Gsp.Gallery.prototype={
GetMediaObjectHtml:function(mediaObjectId,displayType,succeededCallback, failedCallback, userContext) {
return this._invoke(Gsp.Gallery.get_path(), 'GetMediaObjectHtml',false,{mediaObjectId:mediaObjectId,displayType:displayType},succeededCallback,failedCallback,userContext); },
DeleteMediaObject:function(mediaObjectId,succeededCallback, failedCallback, userContext) {
return this._invoke(Gsp.Gallery.get_path(), 'DeleteMediaObject',false,{mediaObjectId:mediaObjectId},succeededCallback,failedCallback,userContext); },
UpdateMediaObjectTitle:function(mediaObjectId,title,succeededCallback, failedCallback, userContext) {
return this._invoke(Gsp.Gallery.get_path(), 'UpdateMediaObjectTitle',false,{mediaObjectId:mediaObjectId,title:title},succeededCallback,failedCallback,userContext); },
UpdateAlbumInfo:function(albumEntity,succeededCallback, failedCallback, userContext) {
return this._invoke(Gsp.Gallery.get_path(), 'UpdateAlbumInfo',false,{albumEntity:albumEntity},succeededCallback,failedCallback,userContext); },
GetAlbumInfo:function(albumId,succeededCallback, failedCallback, userContext) {
return this._invoke(Gsp.Gallery.get_path(), 'GetAlbumInfo',false,{albumId:albumId},succeededCallback,failedCallback,userContext); },
GetMetadataItems:function(mediaObjectId,succeededCallback, failedCallback, userContext) {
return this._invoke(Gsp.Gallery.get_path(), 'GetMetadataItems',false,{mediaObjectId:mediaObjectId},succeededCallback,failedCallback,userContext); },
DeleteAppError:function(appErrorId,succeededCallback, failedCallback, userContext) {
return this._invoke(Gsp.Gallery.get_path(), 'DeleteAppError',false,{appErrorId:appErrorId},succeededCallback,failedCallback,userContext); },
SetMetaDataVisibility:function(isVisible,succeededCallback, failedCallback, userContext) {
return this._invoke(Gsp.Gallery.get_path(), 'SetMetaDataVisibility',false,{isVisible:isVisible},succeededCallback,failedCallback,userContext); },
Synchronize:function(albumId,synchId,isRecursive,overwriteThumb,overwriteOpt,regenerateMetadata,succeededCallback, failedCallback, userContext) {
return this._invoke(Gsp.Gallery.get_path(), 'Synchronize',false,{albumId:albumId,synchId:synchId,isRecursive:isRecursive,overwriteThumb:overwriteThumb,overwriteOpt:overwriteOpt,regenerateMetadata:regenerateMetadata},succeededCallback,failedCallback,userContext); },
GetCurrentStatus:function(succeededCallback, failedCallback, userContext) {
return this._invoke(Gsp.Gallery.get_path(), 'GetCurrentStatus',false,{},succeededCallback,failedCallback,userContext); },
TerminateTask:function(taskId,succeededCallback, failedCallback, userContext) {
return this._invoke(Gsp.Gallery.get_path(), 'TerminateTask',false,{taskId:taskId},succeededCallback,failedCallback,userContext); }}
Gsp.Gallery.registerClass('Gsp.Gallery',Sys.Net.WebServiceProxy);
Gsp.Gallery._staticInstance = new Gsp.Gallery();
Gsp.Gallery.set_path = function(value) { Gsp.Gallery._staticInstance._path = value; }
Gsp.Gallery.get_path = function() { return Gsp.Gallery._staticInstance._path; }
Gsp.Gallery.set_timeout = function(value) { Gsp.Gallery._staticInstance._timeout = value; }
Gsp.Gallery.get_timeout = function() { return Gsp.Gallery._staticInstance._timeout; }
Gsp.Gallery.set_defaultUserContext = function(value) { Gsp.Gallery._staticInstance._userContext = value; }
Gsp.Gallery.get_defaultUserContext = function() { return Gsp.Gallery._staticInstance._userContext; }
Gsp.Gallery.set_defaultSucceededCallback = function(value) { Gsp.Gallery._staticInstance._succeeded = value; }
Gsp.Gallery.get_defaultSucceededCallback = function() { return Gsp.Gallery._staticInstance._succeeded; }
Gsp.Gallery.set_defaultFailedCallback = function(value) { Gsp.Gallery._staticInstance._failed = value; }
Gsp.Gallery.get_defaultFailedCallback = function() { return Gsp.Gallery._staticInstance._failed; }
Gsp.Gallery.set_path("/gallery/gs/services/Gallery.asmx");
Gsp.Gallery.GetMediaObjectHtml= function(mediaObjectId,displayType,onSuccess,onFailed,userContext) {Gsp.Gallery._staticInstance.GetMediaObjectHtml(mediaObjectId,displayType,onSuccess,onFailed,userContext); }
Gsp.Gallery.DeleteMediaObject= function(mediaObjectId,onSuccess,onFailed,userContext) {Gsp.Gallery._staticInstance.DeleteMediaObject(mediaObjectId,onSuccess,onFailed,userContext); }
Gsp.Gallery.UpdateMediaObjectTitle= function(mediaObjectId,title,onSuccess,onFailed,userContext) {Gsp.Gallery._staticInstance.UpdateMediaObjectTitle(mediaObjectId,title,onSuccess,onFailed,userContext); }
Gsp.Gallery.UpdateAlbumInfo= function(albumEntity,onSuccess,onFailed,userContext) {Gsp.Gallery._staticInstance.UpdateAlbumInfo(albumEntity,onSuccess,onFailed,userContext); }
Gsp.Gallery.GetAlbumInfo= function(albumId,onSuccess,onFailed,userContext) {Gsp.Gallery._staticInstance.GetAlbumInfo(albumId,onSuccess,onFailed,userContext); }
Gsp.Gallery.GetMetadataItems= function(mediaObjectId,onSuccess,onFailed,userContext) {Gsp.Gallery._staticInstance.GetMetadataItems(mediaObjectId,onSuccess,onFailed,userContext); }
Gsp.Gallery.DeleteAppError= function(appErrorId,onSuccess,onFailed,userContext) {Gsp.Gallery._staticInstance.DeleteAppError(appErrorId,onSuccess,onFailed,userContext); }
Gsp.Gallery.SetMetaDataVisibility= function(isVisible,onSuccess,onFailed,userContext) {Gsp.Gallery._staticInstance.SetMetaDataVisibility(isVisible,onSuccess,onFailed,userContext); }
Gsp.Gallery.Synchronize= function(albumId,synchId,isRecursive,overwriteThumb,overwriteOpt,regenerateMetadata,onSuccess,onFailed,userContext) {Gsp.Gallery._staticInstance.Synchronize(albumId,synchId,isRecursive,overwriteThumb,overwriteOpt,regenerateMetadata,onSuccess,onFailed,userContext); }
Gsp.Gallery.GetCurrentStatus= function(onSuccess,onFailed,userContext) {Gsp.Gallery._staticInstance.GetCurrentStatus(onSuccess,onFailed,userContext); }
Gsp.Gallery.TerminateTask= function(taskId,onSuccess,onFailed,userContext) {Gsp.Gallery._staticInstance.TerminateTask(taskId,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('GalleryServerPro.Web.Entity');
if (typeof(GalleryServerPro.Web.Entity.MediaObjectWebEntity) === 'undefined') {
GalleryServerPro.Web.Entity.MediaObjectWebEntity=gtc("GalleryServerPro.Web.Entity.MediaObjectWebEntity");
GalleryServerPro.Web.Entity.MediaObjectWebEntity.registerClass('GalleryServerPro.Web.Entity.MediaObjectWebEntity');
}
if (typeof(GalleryServerPro.Web.Entity.AlbumWebEntity) === 'undefined') {
GalleryServerPro.Web.Entity.AlbumWebEntity=gtc("GalleryServerPro.Web.Entity.AlbumWebEntity");
GalleryServerPro.Web.Entity.AlbumWebEntity.registerClass('GalleryServerPro.Web.Entity.AlbumWebEntity');
}
if (typeof(GalleryServerPro.Web.Entity.SynchStatusWebEntity) === 'undefined') {
GalleryServerPro.Web.Entity.SynchStatusWebEntity=gtc("GalleryServerPro.Web.Entity.SynchStatusWebEntity");
GalleryServerPro.Web.Entity.SynchStatusWebEntity.registerClass('GalleryServerPro.Web.Entity.SynchStatusWebEntity');
}
Type.registerNamespace('GalleryServerPro.Business');
if (typeof(GalleryServerPro.Business.DisplayObjectType) === 'undefined') {
GalleryServerPro.Business.DisplayObjectType = function() { throw Error.invalidOperation(); }
GalleryServerPro.Business.DisplayObjectType.prototype = {Unknown: 0,Thumbnail: 1,Optimized: 2,Original: 3,External: 4}
GalleryServerPro.Business.DisplayObjectType.registerEnum('GalleryServerPro.Business.DisplayObjectType', true);
}
