var GalleryService=function() {
GalleryService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
GalleryService.prototype={
GetPhotoInfo:function(key,succeededCallback, failedCallback, userContext) {
return this._invoke(GalleryService.get_path(), 'GetPhotoInfo',false,{key:key},succeededCallback,failedCallback,userContext); },
GetPhotoAuthor:function(key,succeededCallback, failedCallback, userContext) {
return this._invoke(GalleryService.get_path(), 'GetPhotoAuthor',false,{key:key},succeededCallback,failedCallback,userContext); },
GetPhotoComments:function(key,succeededCallback, failedCallback, userContext) {
return this._invoke(GalleryService.get_path(), 'GetPhotoComments',false,{key:key},succeededCallback,failedCallback,userContext); },
PostComment:function(comment,assetID,succeededCallback, failedCallback, userContext) {
return this._invoke(GalleryService.get_path(), 'PostComment',false,{comment:comment,assetID:assetID},succeededCallback,failedCallback,userContext); }}
GalleryService.registerClass('GalleryService',Sys.Net.WebServiceProxy);
GalleryService._staticInstance = new GalleryService();
GalleryService.set_path = function(value) { 
var e = Function._validateParams(arguments, [{name: 'path', type: String}]); if (e) throw e; GalleryService._staticInstance._path = value; }
GalleryService.get_path = function() { return GalleryService._staticInstance._path; }
GalleryService.set_timeout = function(value) { var e = Function._validateParams(arguments, [{name: 'timeout', type: Number}]); if (e) throw e; if (value < 0) { throw Error.argumentOutOfRange('value', value, Sys.Res.invalidTimeout); }
GalleryService._staticInstance._timeout = value; }
GalleryService.get_timeout = function() { 
return GalleryService._staticInstance._timeout; }
GalleryService.set_defaultUserContext = function(value) { 
GalleryService._staticInstance._userContext = value; }
GalleryService.get_defaultUserContext = function() { 
return GalleryService._staticInstance._userContext; }
GalleryService.set_defaultSucceededCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultSucceededCallback', type: Function}]); if (e) throw e; GalleryService._staticInstance._succeeded = value; }
GalleryService.get_defaultSucceededCallback = function() { 
return GalleryService._staticInstance._succeeded; }
GalleryService.set_defaultFailedCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultFailedCallback', type: Function}]); if (e) throw e; GalleryService._staticInstance._failed = value; }
GalleryService.get_defaultFailedCallback = function() { 
return GalleryService._staticInstance._failed; }
GalleryService.set_path("/GalleryService.asmx");
GalleryService.GetPhotoInfo= function(key,onSuccess,onFailed,userContext) {GalleryService._staticInstance.GetPhotoInfo(key,onSuccess,onFailed,userContext); }
GalleryService.GetPhotoAuthor= function(key,onSuccess,onFailed,userContext) {GalleryService._staticInstance.GetPhotoAuthor(key,onSuccess,onFailed,userContext); }
GalleryService.GetPhotoComments= function(key,onSuccess,onFailed,userContext) {GalleryService._staticInstance.GetPhotoComments(key,onSuccess,onFailed,userContext); }
GalleryService.PostComment= function(comment,assetID,onSuccess,onFailed,userContext) {GalleryService._staticInstance.PostComment(comment,assetID,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('VSCountryLib');
if (typeof(VSCountryLib.Asset) === 'undefined') {
VSCountryLib.Asset=gtc("VSCountryLib.Asset");
VSCountryLib.Asset.registerClass('VSCountryLib.Asset');
}
if (typeof(GalleryService_CommentWrapper) === 'undefined') {
var GalleryService_CommentWrapper=gtc("GalleryService+CommentWrapper");
GalleryService_CommentWrapper.registerClass('GalleryService_CommentWrapper');
}
