Type.registerNamespace('HelpService');
HelpService.Question=function() {
HelpService.Question.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
HelpService.Question.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return HelpService.Question._staticInstance.get_path();},
HelloWorld:function(succeededCallback, failedCallback, userContext) {
/// <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(), 'HelloWorld',false,{},succeededCallback,failedCallback,userContext); },
UpdataCountQuestion:function(questionID,succeededCallback, failedCallback, userContext) {
/// <param name="questionID" 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(), 'UpdataCountQuestion',false,{questionID:questionID},succeededCallback,failedCallback,userContext); },
SentQuestion:function(email,content,succeededCallback, failedCallback, userContext) {
/// <param name="email" type="String">System.String</param>
/// <param name="content" 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(), 'SentQuestion',false,{email:email,content:content},succeededCallback,failedCallback,userContext); }}
HelpService.Question.registerClass('HelpService.Question',Sys.Net.WebServiceProxy);
HelpService.Question._staticInstance = new HelpService.Question();
HelpService.Question.set_path = function(value) {
HelpService.Question._staticInstance.set_path(value); }
HelpService.Question.get_path = function() { 
/// <value type="String" mayBeNull="true">The service url.</value>
return HelpService.Question._staticInstance.get_path();}
HelpService.Question.set_timeout = function(value) {
HelpService.Question._staticInstance.set_timeout(value); }
HelpService.Question.get_timeout = function() { 
/// <value type="Number">The service timeout.</value>
return HelpService.Question._staticInstance.get_timeout(); }
HelpService.Question.set_defaultUserContext = function(value) { 
HelpService.Question._staticInstance.set_defaultUserContext(value); }
HelpService.Question.get_defaultUserContext = function() { 
/// <value mayBeNull="true">The service default user context.</value>
return HelpService.Question._staticInstance.get_defaultUserContext(); }
HelpService.Question.set_defaultSucceededCallback = function(value) { 
 HelpService.Question._staticInstance.set_defaultSucceededCallback(value); }
HelpService.Question.get_defaultSucceededCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default succeeded callback.</value>
return HelpService.Question._staticInstance.get_defaultSucceededCallback(); }
HelpService.Question.set_defaultFailedCallback = function(value) { 
HelpService.Question._staticInstance.set_defaultFailedCallback(value); }
HelpService.Question.get_defaultFailedCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default failed callback.</value>
return HelpService.Question._staticInstance.get_defaultFailedCallback(); }
HelpService.Question.set_path("/ServiceFarm/Question.asmx");
HelpService.Question.HelloWorld= function(onSuccess,onFailed,userContext) {
/// <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>
HelpService.Question._staticInstance.HelloWorld(onSuccess,onFailed,userContext); }
HelpService.Question.UpdataCountQuestion= function(questionID,onSuccess,onFailed,userContext) {
/// <param name="questionID" 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>
HelpService.Question._staticInstance.UpdataCountQuestion(questionID,onSuccess,onFailed,userContext); }
HelpService.Question.SentQuestion= function(email,content,onSuccess,onFailed,userContext) {
/// <param name="email" type="String">System.String</param>
/// <param name="content" 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>
HelpService.Question._staticInstance.SentQuestion(email,content,onSuccess,onFailed,userContext); }
