Type.registerNamespace('EZP.Api.Presentation.Web.Ajax');
EZP.Api.Presentation.Web.Ajax.Photos=function() {
EZP.Api.Presentation.Web.Ajax.Photos.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
EZP.Api.Presentation.Web.Ajax.Photos.prototype={
GetAlbum:function(token,albumId,succeededCallback, failedCallback, userContext) {
return this._invoke(EZP.Api.Presentation.Web.Ajax.Photos.get_path(), 'GetAlbum',false,{token:token,albumId:albumId},succeededCallback,failedCallback,userContext); },
AddPhotoToAlbum:function(token,albumId,photoId,succeededCallback, failedCallback, userContext) {
return this._invoke(EZP.Api.Presentation.Web.Ajax.Photos.get_path(), 'AddPhotoToAlbum',false,{token:token,albumId:albumId,photoId:photoId},succeededCallback,failedCallback,userContext); },
RemovePhotoFromAlbum:function(token,albumId,photoId,succeededCallback, failedCallback, userContext) {
return this._invoke(EZP.Api.Presentation.Web.Ajax.Photos.get_path(), 'RemovePhotoFromAlbum',false,{token:token,albumId:albumId,photoId:photoId},succeededCallback,failedCallback,userContext); },
RemoveAlbum:function(token,albumId,succeededCallback, failedCallback, userContext) {
return this._invoke(EZP.Api.Presentation.Web.Ajax.Photos.get_path(), 'RemoveAlbum',false,{token:token,albumId:albumId},succeededCallback,failedCallback,userContext); },
ClaimImage:function(token,encryptionToken,imageId,accessCode,albumTitle,succeededCallback, failedCallback, userContext) {
return this._invoke(EZP.Api.Presentation.Web.Ajax.Photos.get_path(), 'ClaimImage',false,{token:token,encryptionToken:encryptionToken,imageId:imageId,accessCode:accessCode,albumTitle:albumTitle},succeededCallback,failedCallback,userContext); },
ChangeEncryptedPassword:function(token,encryptionToken,oldPassword,succeededCallback, failedCallback, userContext) {
return this._invoke(EZP.Api.Presentation.Web.Ajax.Photos.get_path(), 'ChangeEncryptedPassword',false,{token:token,encryptionToken:encryptionToken,oldPassword:oldPassword},succeededCallback,failedCallback,userContext); },
ResetUserImages:function(userLogin,password,succeededCallback, failedCallback, userContext) {
return this._invoke(EZP.Api.Presentation.Web.Ajax.Photos.get_path(), 'ResetUserImages',false,{userLogin:userLogin,password:password},succeededCallback,failedCallback,userContext); },
GetPhotos:function(token,succeededCallback, failedCallback, userContext) {
return this._invoke(EZP.Api.Presentation.Web.Ajax.Photos.get_path(), 'GetPhotos',false,{token:token},succeededCallback,failedCallback,userContext); },
SharePhoto:function(token,encryptionToken,imageId,toEmail,toName,personalMessage,succeededCallback, failedCallback, userContext) {
return this._invoke(EZP.Api.Presentation.Web.Ajax.Photos.get_path(), 'SharePhoto',false,{token:token,encryptionToken:encryptionToken,imageId:imageId,toEmail:toEmail,toName:toName,personalMessage:personalMessage},succeededCallback,failedCallback,userContext); }}
EZP.Api.Presentation.Web.Ajax.Photos.registerClass('EZP.Api.Presentation.Web.Ajax.Photos',Sys.Net.WebServiceProxy);
EZP.Api.Presentation.Web.Ajax.Photos._staticInstance = new EZP.Api.Presentation.Web.Ajax.Photos();
EZP.Api.Presentation.Web.Ajax.Photos.set_path = function(value) { EZP.Api.Presentation.Web.Ajax.Photos._staticInstance._path = value; }
EZP.Api.Presentation.Web.Ajax.Photos.get_path = function() { return EZP.Api.Presentation.Web.Ajax.Photos._staticInstance._path; }
EZP.Api.Presentation.Web.Ajax.Photos.set_timeout = function(value) { EZP.Api.Presentation.Web.Ajax.Photos._staticInstance._timeout = value; }
EZP.Api.Presentation.Web.Ajax.Photos.get_timeout = function() { return EZP.Api.Presentation.Web.Ajax.Photos._staticInstance._timeout; }
EZP.Api.Presentation.Web.Ajax.Photos.set_defaultUserContext = function(value) { EZP.Api.Presentation.Web.Ajax.Photos._staticInstance._userContext = value; }
EZP.Api.Presentation.Web.Ajax.Photos.get_defaultUserContext = function() { return EZP.Api.Presentation.Web.Ajax.Photos._staticInstance._userContext; }
EZP.Api.Presentation.Web.Ajax.Photos.set_defaultSucceededCallback = function(value) { EZP.Api.Presentation.Web.Ajax.Photos._staticInstance._succeeded = value; }
EZP.Api.Presentation.Web.Ajax.Photos.get_defaultSucceededCallback = function() { return EZP.Api.Presentation.Web.Ajax.Photos._staticInstance._succeeded; }
EZP.Api.Presentation.Web.Ajax.Photos.set_defaultFailedCallback = function(value) { EZP.Api.Presentation.Web.Ajax.Photos._staticInstance._failed = value; }
EZP.Api.Presentation.Web.Ajax.Photos.get_defaultFailedCallback = function() { return EZP.Api.Presentation.Web.Ajax.Photos._staticInstance._failed; }
EZP.Api.Presentation.Web.Ajax.Photos.set_path("/PrintstoreApi/Ajax/photos.asmx");
EZP.Api.Presentation.Web.Ajax.Photos.GetAlbum= function(token,albumId,onSuccess,onFailed,userContext) {EZP.Api.Presentation.Web.Ajax.Photos._staticInstance.GetAlbum(token,albumId,onSuccess,onFailed,userContext); }
EZP.Api.Presentation.Web.Ajax.Photos.AddPhotoToAlbum= function(token,albumId,photoId,onSuccess,onFailed,userContext) {EZP.Api.Presentation.Web.Ajax.Photos._staticInstance.AddPhotoToAlbum(token,albumId,photoId,onSuccess,onFailed,userContext); }
EZP.Api.Presentation.Web.Ajax.Photos.RemovePhotoFromAlbum= function(token,albumId,photoId,onSuccess,onFailed,userContext) {EZP.Api.Presentation.Web.Ajax.Photos._staticInstance.RemovePhotoFromAlbum(token,albumId,photoId,onSuccess,onFailed,userContext); }
EZP.Api.Presentation.Web.Ajax.Photos.RemoveAlbum= function(token,albumId,onSuccess,onFailed,userContext) {EZP.Api.Presentation.Web.Ajax.Photos._staticInstance.RemoveAlbum(token,albumId,onSuccess,onFailed,userContext); }
EZP.Api.Presentation.Web.Ajax.Photos.ClaimImage= function(token,encryptionToken,imageId,accessCode,albumTitle,onSuccess,onFailed,userContext) {EZP.Api.Presentation.Web.Ajax.Photos._staticInstance.ClaimImage(token,encryptionToken,imageId,accessCode,albumTitle,onSuccess,onFailed,userContext); }
EZP.Api.Presentation.Web.Ajax.Photos.ChangeEncryptedPassword= function(token,encryptionToken,oldPassword,onSuccess,onFailed,userContext) {EZP.Api.Presentation.Web.Ajax.Photos._staticInstance.ChangeEncryptedPassword(token,encryptionToken,oldPassword,onSuccess,onFailed,userContext); }
EZP.Api.Presentation.Web.Ajax.Photos.ResetUserImages= function(userLogin,password,onSuccess,onFailed,userContext) {EZP.Api.Presentation.Web.Ajax.Photos._staticInstance.ResetUserImages(userLogin,password,onSuccess,onFailed,userContext); }
EZP.Api.Presentation.Web.Ajax.Photos.GetPhotos= function(token,onSuccess,onFailed,userContext) {EZP.Api.Presentation.Web.Ajax.Photos._staticInstance.GetPhotos(token,onSuccess,onFailed,userContext); }
EZP.Api.Presentation.Web.Ajax.Photos.SharePhoto= function(token,encryptionToken,imageId,toEmail,toName,personalMessage,onSuccess,onFailed,userContext) {EZP.Api.Presentation.Web.Ajax.Photos._staticInstance.SharePhoto(token,encryptionToken,imageId,toEmail,toName,personalMessage,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('EZP.PhotoAlbums.Dto');
if (typeof(EZP.PhotoAlbums.Dto.AlbumDto) === 'undefined') {
EZP.PhotoAlbums.Dto.AlbumDto=gtc("EZP.PhotoAlbums.Dto.AlbumDto");
EZP.PhotoAlbums.Dto.AlbumDto.registerClass('EZP.PhotoAlbums.Dto.AlbumDto');
}
if (typeof(EZP.PhotoAlbums.Dto.PhotoDto) === 'undefined') {
EZP.PhotoAlbums.Dto.PhotoDto=gtc("EZP.PhotoAlbums.Dto.PhotoDto");
EZP.PhotoAlbums.Dto.PhotoDto.registerClass('EZP.PhotoAlbums.Dto.PhotoDto');
}
if (typeof(EZP.PhotoAlbums.Dto.ShareDto) === 'undefined') {
EZP.PhotoAlbums.Dto.ShareDto=gtc("EZP.PhotoAlbums.Dto.ShareDto");
EZP.PhotoAlbums.Dto.ShareDto.registerClass('EZP.PhotoAlbums.Dto.ShareDto');
}
