Type.registerNamespace('Orion.WebAPI');
Orion.WebAPI.VoteUseful=function() {
Orion.WebAPI.VoteUseful.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
Orion.WebAPI.VoteUseful.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return Orion.WebAPI.VoteUseful._staticInstance.get_path();},
VoteWomUseful:function(WomID,IsUseful,succeededCallback, failedCallback, userContext) {
/// <param name="WomID" type="Number">System.Int64</param>
/// <param name="IsUseful" type="Boolean">System.Boolean</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(), 'VoteWomUseful',true,{WomID:WomID,IsUseful:IsUseful},succeededCallback,failedCallback,userContext); },
VoteQuestionUseful:function(QuestionID,IsUseful,succeededCallback, failedCallback, userContext) {
/// <param name="QuestionID" type="Number">System.Int32</param>
/// <param name="IsUseful" type="Boolean">System.Boolean</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(), 'VoteQuestionUseful',true,{QuestionID:QuestionID,IsUseful:IsUseful},succeededCallback,failedCallback,userContext); }}
Orion.WebAPI.VoteUseful.registerClass('Orion.WebAPI.VoteUseful',Sys.Net.WebServiceProxy);
Orion.WebAPI.VoteUseful._staticInstance = new Orion.WebAPI.VoteUseful();
Orion.WebAPI.VoteUseful.set_path = function(value) {
Orion.WebAPI.VoteUseful._staticInstance.set_path(value); }
Orion.WebAPI.VoteUseful.get_path = function() { 
/// <value type="String" mayBeNull="true">The service url.</value>
return Orion.WebAPI.VoteUseful._staticInstance.get_path();}
Orion.WebAPI.VoteUseful.set_timeout = function(value) {
Orion.WebAPI.VoteUseful._staticInstance.set_timeout(value); }
Orion.WebAPI.VoteUseful.get_timeout = function() { 
/// <value type="Number">The service timeout.</value>
return Orion.WebAPI.VoteUseful._staticInstance.get_timeout(); }
Orion.WebAPI.VoteUseful.set_defaultUserContext = function(value) { 
Orion.WebAPI.VoteUseful._staticInstance.set_defaultUserContext(value); }
Orion.WebAPI.VoteUseful.get_defaultUserContext = function() { 
/// <value mayBeNull="true">The service default user context.</value>
return Orion.WebAPI.VoteUseful._staticInstance.get_defaultUserContext(); }
Orion.WebAPI.VoteUseful.set_defaultSucceededCallback = function(value) { 
 Orion.WebAPI.VoteUseful._staticInstance.set_defaultSucceededCallback(value); }
Orion.WebAPI.VoteUseful.get_defaultSucceededCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default succeeded callback.</value>
return Orion.WebAPI.VoteUseful._staticInstance.get_defaultSucceededCallback(); }
Orion.WebAPI.VoteUseful.set_defaultFailedCallback = function(value) { 
Orion.WebAPI.VoteUseful._staticInstance.set_defaultFailedCallback(value); }
Orion.WebAPI.VoteUseful.get_defaultFailedCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default failed callback.</value>
return Orion.WebAPI.VoteUseful._staticInstance.get_defaultFailedCallback(); }
Orion.WebAPI.VoteUseful.set_path("/api/VoteUseful.asmx");
Orion.WebAPI.VoteUseful.VoteWomUseful= function(WomID,IsUseful,onSuccess,onFailed,userContext) {
/// <param name="WomID" type="Number">System.Int64</param>
/// <param name="IsUseful" type="Boolean">System.Boolean</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>
Orion.WebAPI.VoteUseful._staticInstance.VoteWomUseful(WomID,IsUseful,onSuccess,onFailed,userContext); }
Orion.WebAPI.VoteUseful.VoteQuestionUseful= function(QuestionID,IsUseful,onSuccess,onFailed,userContext) {
/// <param name="QuestionID" type="Number">System.Int32</param>
/// <param name="IsUseful" type="Boolean">System.Boolean</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>
Orion.WebAPI.VoteUseful._staticInstance.VoteQuestionUseful(QuestionID,IsUseful,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
if (typeof(Orion.WebAPI.UsefulSummary) === 'undefined') {
Orion.WebAPI.UsefulSummary=gtc("Orion.WebAPI.UsefulSummary");
Orion.WebAPI.UsefulSummary.registerClass('Orion.WebAPI.UsefulSummary');
}

