var HCOGalleryService=function() {
HCOGalleryService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
HCOGalleryService.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return HCOGalleryService._staticInstance.get_path();},
SelectGalleryRating:function(code,succeededCallback, failedCallback, userContext) {
/// <param name="code" 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(), 'SelectGalleryRating',false,{code:code},succeededCallback,failedCallback,userContext); },
RateGallery:function(code,score,succeededCallback, failedCallback, userContext) {
/// <param name="code" type="String">System.String</param>
/// <param name="score" 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(), 'RateGallery',false,{code:code,score:score},succeededCallback,failedCallback,userContext); }}
HCOGalleryService.registerClass('HCOGalleryService',Sys.Net.WebServiceProxy);
HCOGalleryService._staticInstance = new HCOGalleryService();
HCOGalleryService.set_path = function(value) {
HCOGalleryService._staticInstance.set_path(value); }
HCOGalleryService.get_path = function() { 
/// <value type="String" mayBeNull="true">The service url.</value>
return HCOGalleryService._staticInstance.get_path();}
HCOGalleryService.set_timeout = function(value) {
HCOGalleryService._staticInstance.set_timeout(value); }
HCOGalleryService.get_timeout = function() { 
/// <value type="Number">The service timeout.</value>
return HCOGalleryService._staticInstance.get_timeout(); }
HCOGalleryService.set_defaultUserContext = function(value) { 
HCOGalleryService._staticInstance.set_defaultUserContext(value); }
HCOGalleryService.get_defaultUserContext = function() { 
/// <value mayBeNull="true">The service default user context.</value>
return HCOGalleryService._staticInstance.get_defaultUserContext(); }
HCOGalleryService.set_defaultSucceededCallback = function(value) { 
 HCOGalleryService._staticInstance.set_defaultSucceededCallback(value); }
HCOGalleryService.get_defaultSucceededCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default succeeded callback.</value>
return HCOGalleryService._staticInstance.get_defaultSucceededCallback(); }
HCOGalleryService.set_defaultFailedCallback = function(value) { 
HCOGalleryService._staticInstance.set_defaultFailedCallback(value); }
HCOGalleryService.get_defaultFailedCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default failed callback.</value>
return HCOGalleryService._staticInstance.get_defaultFailedCallback(); }
HCOGalleryService.set_path("/Webservices/HCOGalleryService.asmx");
HCOGalleryService.SelectGalleryRating= function(code,onSuccess,onFailed,userContext) {
/// <param name="code" 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>
HCOGalleryService._staticInstance.SelectGalleryRating(code,onSuccess,onFailed,userContext); }
HCOGalleryService.RateGallery= function(code,score,onSuccess,onFailed,userContext) {
/// <param name="code" type="String">System.String</param>
/// <param name="score" 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>
HCOGalleryService._staticInstance.RateGallery(code,score,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('Library.Models');
if (typeof(Library.Models.GalleryRating) === 'undefined') {
Library.Models.GalleryRating=gtc("Library.Models.GalleryRating");
Library.Models.GalleryRating.registerClass('Library.Models.GalleryRating');
}

