Type.registerNamespace('Photo.Web.ScriptServices.Gallery');
Photo.Web.ScriptServices.Gallery.ImageService=function() {
Photo.Web.ScriptServices.Gallery.ImageService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
Photo.Web.ScriptServices.Gallery.ImageService.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return Photo.Web.ScriptServices.Gallery.ImageService._staticInstance.get_path();},
GetImageUrl:function(imageId,maxWidth,maxHeight,succeededCallback, failedCallback, userContext) {
/// <param name="imageId" type="String">System.Guid</param>
/// <param name="maxWidth" type="Number">System.Int32</param>
/// <param name="maxHeight" type="Number">System.Int32</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'GetImageUrl',false,{imageId:imageId,maxWidth:maxWidth,maxHeight:maxHeight},succeededCallback,failedCallback,userContext); },
ChangeName:function(imageId,newValue,succeededCallback, failedCallback, userContext) {
/// <param name="imageId" type="String">System.Guid</param>
/// <param name="newValue" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'ChangeName',false,{imageId:imageId,newValue:newValue},succeededCallback,failedCallback,userContext); },
ChangeDescription:function(imageId,newValue,succeededCallback, failedCallback, userContext) {
/// <param name="imageId" type="String">System.Guid</param>
/// <param name="newValue" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'ChangeDescription',false,{imageId:imageId,newValue:newValue},succeededCallback,failedCallback,userContext); },
SaveTags:function(imageId,tags,succeededCallback, failedCallback, userContext) {
/// <param name="imageId" type="String">System.Guid</param>
/// <param name="tags" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'SaveTags',false,{imageId:imageId,tags:tags},succeededCallback,failedCallback,userContext); },
GetBatchImages:function(batchId,succeededCallback, failedCallback, userContext) {
/// <param name="batchId" type="String">System.Guid</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'GetBatchImages',false,{batchId:batchId},succeededCallback,failedCallback,userContext); },
GetRandomImage:function(succeededCallback, failedCallback, userContext) {
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'GetRandomImage',false,{},succeededCallback,failedCallback,userContext); }}
Photo.Web.ScriptServices.Gallery.ImageService.registerClass('Photo.Web.ScriptServices.Gallery.ImageService',Sys.Net.WebServiceProxy);
Photo.Web.ScriptServices.Gallery.ImageService._staticInstance = new Photo.Web.ScriptServices.Gallery.ImageService();
Photo.Web.ScriptServices.Gallery.ImageService.set_path = function(value) {
Photo.Web.ScriptServices.Gallery.ImageService._staticInstance.set_path(value); }
Photo.Web.ScriptServices.Gallery.ImageService.get_path = function() { 
/// <value type="String" mayBeNull="true">The service url.</value>
return Photo.Web.ScriptServices.Gallery.ImageService._staticInstance.get_path();}
Photo.Web.ScriptServices.Gallery.ImageService.set_timeout = function(value) {
Photo.Web.ScriptServices.Gallery.ImageService._staticInstance.set_timeout(value); }
Photo.Web.ScriptServices.Gallery.ImageService.get_timeout = function() { 
/// <value type="Number">The service timeout.</value>
return Photo.Web.ScriptServices.Gallery.ImageService._staticInstance.get_timeout(); }
Photo.Web.ScriptServices.Gallery.ImageService.set_defaultUserContext = function(value) { 
Photo.Web.ScriptServices.Gallery.ImageService._staticInstance.set_defaultUserContext(value); }
Photo.Web.ScriptServices.Gallery.ImageService.get_defaultUserContext = function() { 
/// <value mayBeNull="true">The service default user context.</value>
return Photo.Web.ScriptServices.Gallery.ImageService._staticInstance.get_defaultUserContext(); }
Photo.Web.ScriptServices.Gallery.ImageService.set_defaultSucceededCallback = function(value) { 
 Photo.Web.ScriptServices.Gallery.ImageService._staticInstance.set_defaultSucceededCallback(value); }
Photo.Web.ScriptServices.Gallery.ImageService.get_defaultSucceededCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default succeeded callback.</value>
return Photo.Web.ScriptServices.Gallery.ImageService._staticInstance.get_defaultSucceededCallback(); }
Photo.Web.ScriptServices.Gallery.ImageService.set_defaultFailedCallback = function(value) { 
Photo.Web.ScriptServices.Gallery.ImageService._staticInstance.set_defaultFailedCallback(value); }
Photo.Web.ScriptServices.Gallery.ImageService.get_defaultFailedCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default failed callback.</value>
return Photo.Web.ScriptServices.Gallery.ImageService._staticInstance.get_defaultFailedCallback(); }
Photo.Web.ScriptServices.Gallery.ImageService.set_path("/ScriptServices/Gallery/ImageService.asmx");
Photo.Web.ScriptServices.Gallery.ImageService.GetImageUrl= function(imageId,maxWidth,maxHeight,onSuccess,onFailed,userContext) {
/// <param name="imageId" type="String">System.Guid</param>
/// <param name="maxWidth" type="Number">System.Int32</param>
/// <param name="maxHeight" type="Number">System.Int32</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
Photo.Web.ScriptServices.Gallery.ImageService._staticInstance.GetImageUrl(imageId,maxWidth,maxHeight,onSuccess,onFailed,userContext); }
Photo.Web.ScriptServices.Gallery.ImageService.ChangeName= function(imageId,newValue,onSuccess,onFailed,userContext) {
/// <param name="imageId" type="String">System.Guid</param>
/// <param name="newValue" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
Photo.Web.ScriptServices.Gallery.ImageService._staticInstance.ChangeName(imageId,newValue,onSuccess,onFailed,userContext); }
Photo.Web.ScriptServices.Gallery.ImageService.ChangeDescription= function(imageId,newValue,onSuccess,onFailed,userContext) {
/// <param name="imageId" type="String">System.Guid</param>
/// <param name="newValue" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
Photo.Web.ScriptServices.Gallery.ImageService._staticInstance.ChangeDescription(imageId,newValue,onSuccess,onFailed,userContext); }
Photo.Web.ScriptServices.Gallery.ImageService.SaveTags= function(imageId,tags,onSuccess,onFailed,userContext) {
/// <param name="imageId" type="String">System.Guid</param>
/// <param name="tags" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
Photo.Web.ScriptServices.Gallery.ImageService._staticInstance.SaveTags(imageId,tags,onSuccess,onFailed,userContext); }
Photo.Web.ScriptServices.Gallery.ImageService.GetBatchImages= function(batchId,onSuccess,onFailed,userContext) {
/// <param name="batchId" type="String">System.Guid</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
Photo.Web.ScriptServices.Gallery.ImageService._staticInstance.GetBatchImages(batchId,onSuccess,onFailed,userContext); }
Photo.Web.ScriptServices.Gallery.ImageService.GetRandomImage= function(onSuccess,onFailed,userContext) {
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
Photo.Web.ScriptServices.Gallery.ImageService._staticInstance.GetRandomImage(onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('Photo.Lib.GalleryFoundation.Imaging');
if (typeof(Photo.Lib.GalleryFoundation.Imaging.ImageMeta) === 'undefined') {
Photo.Lib.GalleryFoundation.Imaging.ImageMeta=gtc("Photo.Lib.GalleryFoundation.Imaging.ImageMeta");
Photo.Lib.GalleryFoundation.Imaging.ImageMeta.registerClass('Photo.Lib.GalleryFoundation.Imaging.ImageMeta');
}
