var CorrectionService=function() {
CorrectionService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
CorrectionService.prototype={
_get_path:function() {
var p = this.get_path();
if (p) return p;
else return CorrectionService._staticInstance.get_path();},
CorrectionOptions:function(articleId,clusterId,clusterCorrection,succeededCallback, failedCallback, userContext) {
/// System.Int32
/// System.Int32
/// System.Boolean
///
///
///
return this._invoke(this._get_path(), 'CorrectionOptions',false,{articleId:articleId,clusterId:clusterId,clusterCorrection:clusterCorrection},succeededCallback,failedCallback,userContext); },
CorrectionOptionClick:function(articleId,isCluster,correctionOption,categoryParent,categoryId,teamId,succeededCallback, failedCallback, userContext) {
/// System.Int32
/// System.Boolean
/// System.String
/// System.Int32
/// System.String
/// System.String
///
///
///
return this._invoke(this._get_path(), 'CorrectionOptionClick',false,{articleId:articleId,isCluster:isCluster,correctionOption:correctionOption,categoryParent:categoryParent,categoryId:categoryId,teamId:teamId},succeededCallback,failedCallback,userContext); },
HandleCorrection:function(articleId,isCluster,wrongCategoryId,correctCategoryId,clusterId,succeededCallback, failedCallback, userContext) {
/// System.Int32
/// System.Boolean
/// System.Int32
/// System.Int32
/// System.Int32
///
///
///
return this._invoke(this._get_path(), 'HandleCorrection',false,{articleId:articleId,isCluster:isCluster,wrongCategoryId:wrongCategoryId,correctCategoryId:correctCategoryId,clusterId:clusterId},succeededCallback,failedCallback,userContext); },
VerifyCorrection:function(articleId,isCluster,categoryId,clusterId,correct,agree,succeededCallback, failedCallback, userContext) {
/// System.Int32
/// System.Boolean
/// System.Int32
/// System.Int32
/// System.Boolean
/// System.Boolean
///
///
///
return this._invoke(this._get_path(), 'VerifyCorrection',false,{articleId:articleId,isCluster:isCluster,categoryId:categoryId,clusterId:clusterId,correct:correct,agree:agree},succeededCallback,failedCallback,userContext); }}
CorrectionService.registerClass('CorrectionService',Sys.Net.WebServiceProxy);
CorrectionService._staticInstance = new CorrectionService();
CorrectionService.set_path = function(value) {
CorrectionService._staticInstance.set_path(value); }
CorrectionService.get_path = function() {
/// The service url.
return CorrectionService._staticInstance.get_path();}
CorrectionService.set_timeout = function(value) {
CorrectionService._staticInstance.set_timeout(value); }
CorrectionService.get_timeout = function() {
/// The service timeout.
return CorrectionService._staticInstance.get_timeout(); }
CorrectionService.set_defaultUserContext = function(value) {
CorrectionService._staticInstance.set_defaultUserContext(value); }
CorrectionService.get_defaultUserContext = function() {
/// The service default user context.
return CorrectionService._staticInstance.get_defaultUserContext(); }
CorrectionService.set_defaultSucceededCallback = function(value) {
CorrectionService._staticInstance.set_defaultSucceededCallback(value); }
CorrectionService.get_defaultSucceededCallback = function() {
/// The service default succeeded callback.
return CorrectionService._staticInstance.get_defaultSucceededCallback(); }
CorrectionService.set_defaultFailedCallback = function(value) {
CorrectionService._staticInstance.set_defaultFailedCallback(value); }
CorrectionService.get_defaultFailedCallback = function() {
/// The service default failed callback.
return CorrectionService._staticInstance.get_defaultFailedCallback(); }
CorrectionService.set_enableJsonp = function(value) { CorrectionService._staticInstance.set_enableJsonp(value); }
CorrectionService.get_enableJsonp = function() {
/// Specifies whether the service supports JSONP for cross domain calling.
return CorrectionService._staticInstance.get_enableJsonp(); }
CorrectionService.set_jsonpCallbackParameter = function(value) { CorrectionService._staticInstance.set_jsonpCallbackParameter(value); }
CorrectionService.get_jsonpCallbackParameter = function() {
/// Specifies the parameter name that contains the callback function name for a JSONP request.
return CorrectionService._staticInstance.get_jsonpCallbackParameter(); }
CorrectionService.set_path("/CorrectionService.asmx");
CorrectionService.CorrectionOptions= function(articleId,clusterId,clusterCorrection,onSuccess,onFailed,userContext) {
/// System.Int32
/// System.Int32
/// System.Boolean
///
///
///
CorrectionService._staticInstance.CorrectionOptions(articleId,clusterId,clusterCorrection,onSuccess,onFailed,userContext); }
CorrectionService.CorrectionOptionClick= function(articleId,isCluster,correctionOption,categoryParent,categoryId,teamId,onSuccess,onFailed,userContext) {
/// System.Int32
/// System.Boolean
/// System.String
/// System.Int32
/// System.String
/// System.String
///
///
///
CorrectionService._staticInstance.CorrectionOptionClick(articleId,isCluster,correctionOption,categoryParent,categoryId,teamId,onSuccess,onFailed,userContext); }
CorrectionService.HandleCorrection= function(articleId,isCluster,wrongCategoryId,correctCategoryId,clusterId,onSuccess,onFailed,userContext) {
/// System.Int32
/// System.Boolean
/// System.Int32
/// System.Int32
/// System.Int32
///
///
///
CorrectionService._staticInstance.HandleCorrection(articleId,isCluster,wrongCategoryId,correctCategoryId,clusterId,onSuccess,onFailed,userContext); }
CorrectionService.VerifyCorrection= function(articleId,isCluster,categoryId,clusterId,correct,agree,onSuccess,onFailed,userContext) {
/// System.Int32
/// System.Boolean
/// System.Int32
/// System.Int32
/// System.Boolean
/// System.Boolean
///
///
///
CorrectionService._staticInstance.VerifyCorrection(articleId,isCluster,categoryId,clusterId,correct,agree,onSuccess,onFailed,userContext); }