var CommentService=function() {
CommentService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
CommentService.prototype={
GetNewsComments:function(tmplString,newsId,moduleName,destpage,pagesize,succeededCallback, failedCallback, userContext) {
return this._invoke(CommentService.get_path(), 'GetNewsComments',false,{tmplString:tmplString,newsId:newsId,moduleName:moduleName,destpage:destpage,pagesize:pagesize},succeededCallback,failedCallback,userContext); },
GetGameComments:function(tmplString,gameId,moduleName,destpage,pagesize,succeededCallback, failedCallback, userContext) {
return this._invoke(CommentService.get_path(), 'GetGameComments',false,{tmplString:tmplString,gameId:gameId,moduleName:moduleName,destpage:destpage,pagesize:pagesize},succeededCallback,failedCallback,userContext); },
GetProductComments:function(tmplString,productId,moduleName,destpage,pagesize,succeededCallback, failedCallback, userContext) {
return this._invoke(CommentService.get_path(), 'GetProductComments',false,{tmplString:tmplString,productId:productId,moduleName:moduleName,destpage:destpage,pagesize:pagesize},succeededCallback,failedCallback,userContext); },
AddGameToFavorite:function(gameId,succeededCallback, failedCallback, userContext) {
return this._invoke(CommentService.get_path(), 'AddGameToFavorite',false,{gameId:gameId},succeededCallback,failedCallback,userContext); },
RatingGame:function(gameId,levelval,succeededCallback, failedCallback, userContext) {
return this._invoke(CommentService.get_path(), 'RatingGame',false,{gameId:gameId,levelval:levelval},succeededCallback,failedCallback,userContext); },
RetrieveRandomGameByLevel:function(CommendVal,tmplString,succeededCallback, failedCallback, userContext) {
return this._invoke(CommentService.get_path(), 'RetrieveRandomGameByLevel',false,{CommendVal:CommendVal,tmplString:tmplString},succeededCallback,failedCallback,userContext); },
RetrieveRecentGame:function(tmplString,succeededCallback, failedCallback, userContext) {
return this._invoke(CommentService.get_path(), 'RetrieveRecentGame',false,{tmplString:tmplString},succeededCallback,failedCallback,userContext); },
SurveyPlaceGame:function(gameId,placeId,tmplString,succeededCallback, failedCallback, userContext) {
return this._invoke(CommentService.get_path(), 'SurveyPlaceGame',false,{gameId:gameId,placeId:placeId,tmplString:tmplString},succeededCallback,failedCallback,userContext); },
IsValidLoginName:function(uname,succeededCallback, failedCallback, userContext) {
return this._invoke(CommentService.get_path(), 'IsValidLoginName',false,{uname:uname},succeededCallback,failedCallback,userContext); }}
CommentService.registerClass('CommentService',Sys.Net.WebServiceProxy);
CommentService._staticInstance = new CommentService();
CommentService.set_path = function(value) { CommentService._staticInstance._path = value; }
CommentService.get_path = function() { return CommentService._staticInstance._path; }
CommentService.set_timeout = function(value) { CommentService._staticInstance._timeout = value; }
CommentService.get_timeout = function() { return CommentService._staticInstance._timeout; }
CommentService.set_defaultUserContext = function(value) { CommentService._staticInstance._userContext = value; }
CommentService.get_defaultUserContext = function() { return CommentService._staticInstance._userContext; }
CommentService.set_defaultSucceededCallback = function(value) { CommentService._staticInstance._succeeded = value; }
CommentService.get_defaultSucceededCallback = function() { return CommentService._staticInstance._succeeded; }
CommentService.set_defaultFailedCallback = function(value) { CommentService._staticInstance._failed = value; }
CommentService.get_defaultFailedCallback = function() { return CommentService._staticInstance._failed; }
CommentService.set_path("/ws/CommentService.asmx");
CommentService.GetNewsComments= function(tmplString,newsId,moduleName,destpage,pagesize,onSuccess,onFailed,userContext) {CommentService._staticInstance.GetNewsComments(tmplString,newsId,moduleName,destpage,pagesize,onSuccess,onFailed,userContext); }
CommentService.GetGameComments= function(tmplString,gameId,moduleName,destpage,pagesize,onSuccess,onFailed,userContext) {CommentService._staticInstance.GetGameComments(tmplString,gameId,moduleName,destpage,pagesize,onSuccess,onFailed,userContext); }
CommentService.GetProductComments= function(tmplString,productId,moduleName,destpage,pagesize,onSuccess,onFailed,userContext) {CommentService._staticInstance.GetProductComments(tmplString,productId,moduleName,destpage,pagesize,onSuccess,onFailed,userContext); }
CommentService.AddGameToFavorite= function(gameId,onSuccess,onFailed,userContext) {CommentService._staticInstance.AddGameToFavorite(gameId,onSuccess,onFailed,userContext); }
CommentService.RatingGame= function(gameId,levelval,onSuccess,onFailed,userContext) {CommentService._staticInstance.RatingGame(gameId,levelval,onSuccess,onFailed,userContext); }
CommentService.RetrieveRandomGameByLevel= function(CommendVal,tmplString,onSuccess,onFailed,userContext) {CommentService._staticInstance.RetrieveRandomGameByLevel(CommendVal,tmplString,onSuccess,onFailed,userContext); }
CommentService.RetrieveRecentGame= function(tmplString,onSuccess,onFailed,userContext) {CommentService._staticInstance.RetrieveRecentGame(tmplString,onSuccess,onFailed,userContext); }
CommentService.SurveyPlaceGame= function(gameId,placeId,tmplString,onSuccess,onFailed,userContext) {CommentService._staticInstance.SurveyPlaceGame(gameId,placeId,tmplString,onSuccess,onFailed,userContext); }
CommentService.IsValidLoginName= function(uname,onSuccess,onFailed,userContext) {CommentService._staticInstance.IsValidLoginName(uname,onSuccess,onFailed,userContext); }
