Type.registerNamespace('PhotoSite.Framework');
PhotoSite.Framework.IAlbumService=function() {
PhotoSite.Framework.IAlbumService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
PhotoSite.Framework.IAlbumService.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return PhotoSite.Framework.IAlbumService._staticInstance.get_path();},
CreateAlbum:function(encUserId,caption,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'CreateAlbum',false,{encUserId:encUserId,caption:caption},succeededCallback,failedCallback,userContext); },
CreateAlbumWithDescription:function(encUserId,caption,description,keywords,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'CreateAlbumWithDescription',false,{encUserId:encUserId,caption:caption,description:description,keywords:keywords},succeededCallback,failedCallback,userContext); },
GetAlbumsForUser:function(encUserId,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetAlbumsForUser',false,{encUserId:encUserId},succeededCallback,failedCallback,userContext); },
GetAlbumsForUserByType:function(encUserId,albumTypeId,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetAlbumsForUserByType',false,{encUserId:encUserId,albumTypeId:albumTypeId},succeededCallback,failedCallback,userContext); },
GetAlbumsForUserByTypes:function(encUserId,albumTypes,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetAlbumsForUserByTypes',false,{encUserId:encUserId,albumTypes:albumTypes},succeededCallback,failedCallback,userContext); },
GetAlbumsWithThumbnailsForUser:function(encUserId,thumbnailCount,thumbnailWidth,thumbnailHeight,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetAlbumsWithThumbnailsForUser',false,{encUserId:encUserId,thumbnailCount:thumbnailCount,thumbnailWidth:thumbnailWidth,thumbnailHeight:thumbnailHeight},succeededCallback,failedCallback,userContext); },
GetAlbumsWithThumbnailsForUserByType:function(encUserId,thumbnailCount,thumbnailWidth,thumbnailHeight,albymTypeId,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetAlbumsWithThumbnailsForUserByType',false,{encUserId:encUserId,thumbnailCount:thumbnailCount,thumbnailWidth:thumbnailWidth,thumbnailHeight:thumbnailHeight,albymTypeId:albymTypeId},succeededCallback,failedCallback,userContext); },
GetAlbumsWithThumbnailsForUserByTypes:function(encUserId,thumbnailCount,thumbnailWidth,thumbnailHeight,albumTypes,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetAlbumsWithThumbnailsForUserByTypes',false,{encUserId:encUserId,thumbnailCount:thumbnailCount,thumbnailWidth:thumbnailWidth,thumbnailHeight:thumbnailHeight,albumTypes:albumTypes},succeededCallback,failedCallback,userContext); },
DeleteAlbum:function(encAlbumId,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'DeleteAlbum',false,{encAlbumId:encAlbumId},succeededCallback,failedCallback,userContext); },
DeleteAlbums:function(encAlbumIds,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'DeleteAlbums',false,{encAlbumIds:encAlbumIds},succeededCallback,failedCallback,userContext); },
RenameAlbum:function(encAlbumId,newName,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'RenameAlbum',false,{encAlbumId:encAlbumId,newName:newName},succeededCallback,failedCallback,userContext); },
CopyAlbum:function(encUserId,encAlbumId,copyName,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'CopyAlbum',false,{encUserId:encUserId,encAlbumId:encAlbumId,copyName:copyName},succeededCallback,failedCallback,userContext); },
CopyAlbums:function(encUserId,encAlbumIds,copyNames,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'CopyAlbums',false,{encUserId:encUserId,encAlbumIds:encAlbumIds,copyNames:copyNames},succeededCallback,failedCallback,userContext); },
UpdateAlbumCoverMediaIDs:function(albumCoverMediaIDs,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'UpdateAlbumCoverMediaIDs',false,{albumCoverMediaIDs:albumCoverMediaIDs},succeededCallback,failedCallback,userContext); }}
PhotoSite.Framework.IAlbumService.registerClass('PhotoSite.Framework.IAlbumService',Sys.Net.WebServiceProxy);
PhotoSite.Framework.IAlbumService._staticInstance = new PhotoSite.Framework.IAlbumService();
PhotoSite.Framework.IAlbumService.set_path = function(value) { PhotoSite.Framework.IAlbumService._staticInstance.set_path(value); }
PhotoSite.Framework.IAlbumService.get_path = function() { return PhotoSite.Framework.IAlbumService._staticInstance.get_path(); }
PhotoSite.Framework.IAlbumService.set_timeout = function(value) { PhotoSite.Framework.IAlbumService._staticInstance.set_timeout(value); }
PhotoSite.Framework.IAlbumService.get_timeout = function() { return PhotoSite.Framework.IAlbumService._staticInstance.get_timeout(); }
PhotoSite.Framework.IAlbumService.set_defaultUserContext = function(value) { PhotoSite.Framework.IAlbumService._staticInstance.set_defaultUserContext(value); }
PhotoSite.Framework.IAlbumService.get_defaultUserContext = function() { return PhotoSite.Framework.IAlbumService._staticInstance.get_defaultUserContext(); }
PhotoSite.Framework.IAlbumService.set_defaultSucceededCallback = function(value) { PhotoSite.Framework.IAlbumService._staticInstance.set_defaultSucceededCallback(value); }
PhotoSite.Framework.IAlbumService.get_defaultSucceededCallback = function() { return PhotoSite.Framework.IAlbumService._staticInstance.get_defaultSucceededCallback(); }
PhotoSite.Framework.IAlbumService.set_defaultFailedCallback = function(value) { PhotoSite.Framework.IAlbumService._staticInstance.set_defaultFailedCallback(value); }
PhotoSite.Framework.IAlbumService.get_defaultFailedCallback = function() { return PhotoSite.Framework.IAlbumService._staticInstance.get_defaultFailedCallback(); }
PhotoSite.Framework.IAlbumService.set_path("/PC.WebServices/AlbumService.svc");
PhotoSite.Framework.IAlbumService.CreateAlbum= function(encUserId,caption,onSuccess,onFailed,userContext) {PhotoSite.Framework.IAlbumService._staticInstance.CreateAlbum(encUserId,caption,onSuccess,onFailed,userContext); }
PhotoSite.Framework.IAlbumService.CreateAlbumWithDescription= function(encUserId,caption,description,keywords,onSuccess,onFailed,userContext) {PhotoSite.Framework.IAlbumService._staticInstance.CreateAlbumWithDescription(encUserId,caption,description,keywords,onSuccess,onFailed,userContext); }
PhotoSite.Framework.IAlbumService.GetAlbumsForUser= function(encUserId,onSuccess,onFailed,userContext) {PhotoSite.Framework.IAlbumService._staticInstance.GetAlbumsForUser(encUserId,onSuccess,onFailed,userContext); }
PhotoSite.Framework.IAlbumService.GetAlbumsForUserByType= function(encUserId,albumTypeId,onSuccess,onFailed,userContext) {PhotoSite.Framework.IAlbumService._staticInstance.GetAlbumsForUserByType(encUserId,albumTypeId,onSuccess,onFailed,userContext); }
PhotoSite.Framework.IAlbumService.GetAlbumsForUserByTypes= function(encUserId,albumTypes,onSuccess,onFailed,userContext) {PhotoSite.Framework.IAlbumService._staticInstance.GetAlbumsForUserByTypes(encUserId,albumTypes,onSuccess,onFailed,userContext); }
PhotoSite.Framework.IAlbumService.GetAlbumsWithThumbnailsForUser= function(encUserId,thumbnailCount,thumbnailWidth,thumbnailHeight,onSuccess,onFailed,userContext) {PhotoSite.Framework.IAlbumService._staticInstance.GetAlbumsWithThumbnailsForUser(encUserId,thumbnailCount,thumbnailWidth,thumbnailHeight,onSuccess,onFailed,userContext); }
PhotoSite.Framework.IAlbumService.GetAlbumsWithThumbnailsForUserByType= function(encUserId,thumbnailCount,thumbnailWidth,thumbnailHeight,albymTypeId,onSuccess,onFailed,userContext) {PhotoSite.Framework.IAlbumService._staticInstance.GetAlbumsWithThumbnailsForUserByType(encUserId,thumbnailCount,thumbnailWidth,thumbnailHeight,albymTypeId,onSuccess,onFailed,userContext); }
PhotoSite.Framework.IAlbumService.GetAlbumsWithThumbnailsForUserByTypes= function(encUserId,thumbnailCount,thumbnailWidth,thumbnailHeight,albumTypes,onSuccess,onFailed,userContext) {PhotoSite.Framework.IAlbumService._staticInstance.GetAlbumsWithThumbnailsForUserByTypes(encUserId,thumbnailCount,thumbnailWidth,thumbnailHeight,albumTypes,onSuccess,onFailed,userContext); }
PhotoSite.Framework.IAlbumService.DeleteAlbum= function(encAlbumId,onSuccess,onFailed,userContext) {PhotoSite.Framework.IAlbumService._staticInstance.DeleteAlbum(encAlbumId,onSuccess,onFailed,userContext); }
PhotoSite.Framework.IAlbumService.DeleteAlbums= function(encAlbumIds,onSuccess,onFailed,userContext) {PhotoSite.Framework.IAlbumService._staticInstance.DeleteAlbums(encAlbumIds,onSuccess,onFailed,userContext); }
PhotoSite.Framework.IAlbumService.RenameAlbum= function(encAlbumId,newName,onSuccess,onFailed,userContext) {PhotoSite.Framework.IAlbumService._staticInstance.RenameAlbum(encAlbumId,newName,onSuccess,onFailed,userContext); }
PhotoSite.Framework.IAlbumService.CopyAlbum= function(encUserId,encAlbumId,copyName,onSuccess,onFailed,userContext) {PhotoSite.Framework.IAlbumService._staticInstance.CopyAlbum(encUserId,encAlbumId,copyName,onSuccess,onFailed,userContext); }
PhotoSite.Framework.IAlbumService.CopyAlbums= function(encUserId,encAlbumIds,copyNames,onSuccess,onFailed,userContext) {PhotoSite.Framework.IAlbumService._staticInstance.CopyAlbums(encUserId,encAlbumIds,copyNames,onSuccess,onFailed,userContext); }
PhotoSite.Framework.IAlbumService.UpdateAlbumCoverMediaIDs= function(albumCoverMediaIDs,onSuccess,onFailed,userContext) {PhotoSite.Framework.IAlbumService._staticInstance.UpdateAlbumCoverMediaIDs(albumCoverMediaIDs,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('PhotoSite.Framework.WebServices.DataModels');
if (typeof(PhotoSite.Framework.WebServices.DataModels.ClientAlbum) === 'undefined') {
PhotoSite.Framework.WebServices.DataModels.ClientAlbum=gtc("ClientAlbum:http://schemas.datacontract.org/2004/07/PhotoSite.Framework.WebServices.DataModels");
PhotoSite.Framework.WebServices.DataModels.ClientAlbum.registerClass('PhotoSite.Framework.WebServices.DataModels.ClientAlbum');
}
if (typeof(PhotoSite.Framework.WebServices.DataModels.AlbumCoverMediaID) === 'undefined') {
PhotoSite.Framework.WebServices.DataModels.AlbumCoverMediaID=gtc("AlbumCoverMediaID:http://schemas.datacontract.org/2004/07/PhotoSite.Framework.WebServices.DataModels");
PhotoSite.Framework.WebServices.DataModels.AlbumCoverMediaID.registerClass('PhotoSite.Framework.WebServices.DataModels.AlbumCoverMediaID');
}
Type.registerNamespace('PC.Framework.Account');
if (typeof(PC.Framework.Account.AlbumTypeID) === 'undefined') {
PC.Framework.Account.AlbumTypeID = function() { throw Error.invalidOperation(); }
PC.Framework.Account.AlbumTypeID.prototype = {Roll: 1,Upload: 2,LTS: 3,Share: 4,Sample: 5,EmailUpload: 6,Documents: 6,Favorites: 7,ShareProxy: 8,Logos: 9,Internal: 10,Community: 11,Facebook: 12,Picasa: 13,PremiumMedia: 14}
PC.Framework.Account.AlbumTypeID.registerEnum('PC.Framework.Account.AlbumTypeID', true);
}

