var advice=function() {
advice.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
advice.prototype={
getNickName:function(iUserID,succeededCallback, failedCallback, userContext) {
return this._invoke(advice.get_path(), 'getNickName',true,{iUserID:iUserID},succeededCallback,failedCallback,userContext); },
saveAdvice:function(luserID,strTitle,strContent,succeededCallback, failedCallback, userContext) {
return this._invoke(advice.get_path(), 'saveAdvice',false,{luserID:luserID,strTitle:strTitle,strContent:strContent},succeededCallback,failedCallback,userContext); },
showAdvice:function(strNumPage,CurrPage,strUserID,succeededCallback, failedCallback, userContext) {
return this._invoke(advice.get_path(), 'showAdvice',true,{strNumPage:strNumPage,CurrPage:CurrPage,strUserID:strUserID},succeededCallback,failedCallback,userContext); },
getPages:function(iNumPage,iCurrPage,strUserID,succeededCallback, failedCallback, userContext) {
return this._invoke(advice.get_path(), 'getPages',true,{iNumPage:iNumPage,iCurrPage:iCurrPage,strUserID:strUserID},succeededCallback,failedCallback,userContext); },
saveReply:function(luserID,strContent,ladviceID,succeededCallback, failedCallback, userContext) {
return this._invoke(advice.get_path(), 'saveReply',false,{luserID:luserID,strContent:strContent,ladviceID:ladviceID},succeededCallback,failedCallback,userContext); },
showReplyAdvice:function(strNumPage,CurrPage,lAdviceID,succeededCallback, failedCallback, userContext) {
return this._invoke(advice.get_path(), 'showReplyAdvice',true,{strNumPage:strNumPage,CurrPage:CurrPage,lAdviceID:lAdviceID},succeededCallback,failedCallback,userContext); },
getReplyPages:function(iNumPage,iCurrPage,lAdviceID,succeededCallback, failedCallback, userContext) {
return this._invoke(advice.get_path(), 'getReplyPages',true,{iNumPage:iNumPage,iCurrPage:iCurrPage,lAdviceID:lAdviceID},succeededCallback,failedCallback,userContext); },
deleteAdvice:function(lAdviceID,succeededCallback, failedCallback, userContext) {
return this._invoke(advice.get_path(), 'deleteAdvice',false,{lAdviceID:lAdviceID},succeededCallback,failedCallback,userContext); },
getTopic:function(strAdviceID,succeededCallback, failedCallback, userContext) {
return this._invoke(advice.get_path(), 'getTopic',true,{strAdviceID:strAdviceID},succeededCallback,failedCallback,userContext); }}
advice.registerClass('advice',Sys.Net.WebServiceProxy);
advice._staticInstance = new advice();
advice.set_path = function(value) { 
var e = Function._validateParams(arguments, [{name: 'path', type: String}]); if (e) throw e; advice._staticInstance._path = value; }
advice.get_path = function() { return advice._staticInstance._path; }
advice.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); }
advice._staticInstance._timeout = value; }
advice.get_timeout = function() { 
return advice._staticInstance._timeout; }
advice.set_defaultUserContext = function(value) { 
advice._staticInstance._userContext = value; }
advice.get_defaultUserContext = function() { 
return advice._staticInstance._userContext; }
advice.set_defaultSucceededCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultSucceededCallback', type: Function}]); if (e) throw e; advice._staticInstance._succeeded = value; }
advice.get_defaultSucceededCallback = function() { 
return advice._staticInstance._succeeded; }
advice.set_defaultFailedCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultFailedCallback', type: Function}]); if (e) throw e; advice._staticInstance._failed = value; }
advice.get_defaultFailedCallback = function() { 
return advice._staticInstance._failed; }
advice.set_path("/webservice/advice.asmx");
advice.getNickName= function(iUserID,onSuccess,onFailed,userContext) {advice._staticInstance.getNickName(iUserID,onSuccess,onFailed,userContext); }
advice.saveAdvice= function(luserID,strTitle,strContent,onSuccess,onFailed,userContext) {advice._staticInstance.saveAdvice(luserID,strTitle,strContent,onSuccess,onFailed,userContext); }
advice.showAdvice= function(strNumPage,CurrPage,strUserID,onSuccess,onFailed,userContext) {advice._staticInstance.showAdvice(strNumPage,CurrPage,strUserID,onSuccess,onFailed,userContext); }
advice.getPages= function(iNumPage,iCurrPage,strUserID,onSuccess,onFailed,userContext) {advice._staticInstance.getPages(iNumPage,iCurrPage,strUserID,onSuccess,onFailed,userContext); }
advice.saveReply= function(luserID,strContent,ladviceID,onSuccess,onFailed,userContext) {advice._staticInstance.saveReply(luserID,strContent,ladviceID,onSuccess,onFailed,userContext); }
advice.showReplyAdvice= function(strNumPage,CurrPage,lAdviceID,onSuccess,onFailed,userContext) {advice._staticInstance.showReplyAdvice(strNumPage,CurrPage,lAdviceID,onSuccess,onFailed,userContext); }
advice.getReplyPages= function(iNumPage,iCurrPage,lAdviceID,onSuccess,onFailed,userContext) {advice._staticInstance.getReplyPages(iNumPage,iCurrPage,lAdviceID,onSuccess,onFailed,userContext); }
advice.deleteAdvice= function(lAdviceID,onSuccess,onFailed,userContext) {advice._staticInstance.deleteAdvice(lAdviceID,onSuccess,onFailed,userContext); }
advice.getTopic= function(strAdviceID,onSuccess,onFailed,userContext) {advice._staticInstance.getTopic(strAdviceID,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
if (typeof(advices) === 'undefined') {
var advices=gtc("advices");
advices.registerClass('advices');
}
