Type.registerNamespace('TwelveTitans');
TwelveTitans.IVote=function() {
TwelveTitans.IVote.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
TwelveTitans.IVote.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return TwelveTitans.IVote._staticInstance.get_path();},
vote:function(entryStr,vote,succeededCallback, failedCallback, userContext) {
/// <param name="entryStr" type="String">System.String</param>
/// <param name="vote" type="Number">System.Byte</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(), 'vote',false,{entryStr:entryStr,vote:vote},succeededCallback,failedCallback,userContext); }}
TwelveTitans.IVote.registerClass('TwelveTitans.IVote',Sys.Net.WebServiceProxy);
TwelveTitans.IVote._staticInstance = new TwelveTitans.IVote();
TwelveTitans.IVote.set_path = function(value) {
TwelveTitans.IVote._staticInstance.set_path(value); }
TwelveTitans.IVote.get_path = function() { 
/// <value type="String" mayBeNull="true">The service url.</value>
return TwelveTitans.IVote._staticInstance.get_path();}
TwelveTitans.IVote.set_timeout = function(value) {
TwelveTitans.IVote._staticInstance.set_timeout(value); }
TwelveTitans.IVote.get_timeout = function() { 
/// <value type="Number">The service timeout.</value>
return TwelveTitans.IVote._staticInstance.get_timeout(); }
TwelveTitans.IVote.set_defaultUserContext = function(value) { 
TwelveTitans.IVote._staticInstance.set_defaultUserContext(value); }
TwelveTitans.IVote.get_defaultUserContext = function() { 
/// <value mayBeNull="true">The service default user context.</value>
return TwelveTitans.IVote._staticInstance.get_defaultUserContext(); }
TwelveTitans.IVote.set_defaultSucceededCallback = function(value) { 
 TwelveTitans.IVote._staticInstance.set_defaultSucceededCallback(value); }
TwelveTitans.IVote.get_defaultSucceededCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default succeeded callback.</value>
return TwelveTitans.IVote._staticInstance.get_defaultSucceededCallback(); }
TwelveTitans.IVote.set_defaultFailedCallback = function(value) { 
TwelveTitans.IVote._staticInstance.set_defaultFailedCallback(value); }
TwelveTitans.IVote.get_defaultFailedCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default failed callback.</value>
return TwelveTitans.IVote._staticInstance.get_defaultFailedCallback(); }
TwelveTitans.IVote.set_path("/Vote.svc");
TwelveTitans.IVote.vote= function(entryStr,vote,onSuccess,onFailed,userContext) {
/// <param name="entryStr" type="String">System.String</param>
/// <param name="vote" type="Number">System.Byte</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>
TwelveTitans.IVote._staticInstance.vote(entryStr,vote,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
if (typeof(TwelveTitans.VoteResult) === 'undefined') {
TwelveTitans.VoteResult=gtc("VoteResult:TwelveTitans");
TwelveTitans.VoteResult.registerClass('TwelveTitans.VoteResult');
}
