Type.registerNamespace('esnai.com.ishare.webservice');
esnai.com.ishare.webservice.ishareVote=function() {
esnai.com.ishare.webservice.ishareVote.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
esnai.com.ishare.webservice.ishareVote.prototype={
getVoteData:function(fileID,succeededCallback, failedCallback, userContext) {
return this._invoke(esnai.com.ishare.webservice.ishareVote.get_path(), 'getVoteData',false,{fileID:fileID},succeededCallback,failedCallback,userContext); },
voteYes:function(fileID,succeededCallback, failedCallback, userContext) {
return this._invoke(esnai.com.ishare.webservice.ishareVote.get_path(), 'voteYes',false,{fileID:fileID},succeededCallback,failedCallback,userContext); },
voteNo:function(fileID,succeededCallback, failedCallback, userContext) {
return this._invoke(esnai.com.ishare.webservice.ishareVote.get_path(), 'voteNo',false,{fileID:fileID},succeededCallback,failedCallback,userContext); }}
esnai.com.ishare.webservice.ishareVote.registerClass('esnai.com.ishare.webservice.ishareVote',Sys.Net.WebServiceProxy);
esnai.com.ishare.webservice.ishareVote._staticInstance = new esnai.com.ishare.webservice.ishareVote();
esnai.com.ishare.webservice.ishareVote.set_path = function(value) { 
var e = Function._validateParams(arguments, [{name: 'path', type: String}]); if (e) throw e; esnai.com.ishare.webservice.ishareVote._staticInstance._path = value; }
esnai.com.ishare.webservice.ishareVote.get_path = function() { return esnai.com.ishare.webservice.ishareVote._staticInstance._path; }
esnai.com.ishare.webservice.ishareVote.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); }
esnai.com.ishare.webservice.ishareVote._staticInstance._timeout = value; }
esnai.com.ishare.webservice.ishareVote.get_timeout = function() { 
return esnai.com.ishare.webservice.ishareVote._staticInstance._timeout; }
esnai.com.ishare.webservice.ishareVote.set_defaultUserContext = function(value) { 
esnai.com.ishare.webservice.ishareVote._staticInstance._userContext = value; }
esnai.com.ishare.webservice.ishareVote.get_defaultUserContext = function() { 
return esnai.com.ishare.webservice.ishareVote._staticInstance._userContext; }
esnai.com.ishare.webservice.ishareVote.set_defaultSucceededCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultSucceededCallback', type: Function}]); if (e) throw e; esnai.com.ishare.webservice.ishareVote._staticInstance._succeeded = value; }
esnai.com.ishare.webservice.ishareVote.get_defaultSucceededCallback = function() { 
return esnai.com.ishare.webservice.ishareVote._staticInstance._succeeded; }
esnai.com.ishare.webservice.ishareVote.set_defaultFailedCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultFailedCallback', type: Function}]); if (e) throw e; esnai.com.ishare.webservice.ishareVote._staticInstance._failed = value; }
esnai.com.ishare.webservice.ishareVote.get_defaultFailedCallback = function() { 
return esnai.com.ishare.webservice.ishareVote._staticInstance._failed; }
esnai.com.ishare.webservice.ishareVote.set_path("/asm/ishareVote.asmx");
esnai.com.ishare.webservice.ishareVote.getVoteData= function(fileID,onSuccess,onFailed,userContext) {esnai.com.ishare.webservice.ishareVote._staticInstance.getVoteData(fileID,onSuccess,onFailed,userContext); }
esnai.com.ishare.webservice.ishareVote.voteYes= function(fileID,onSuccess,onFailed,userContext) {esnai.com.ishare.webservice.ishareVote._staticInstance.voteYes(fileID,onSuccess,onFailed,userContext); }
esnai.com.ishare.webservice.ishareVote.voteNo= function(fileID,onSuccess,onFailed,userContext) {esnai.com.ishare.webservice.ishareVote._staticInstance.voteNo(fileID,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
if (typeof(esnai.com.ishare.webservice.WebServiceStatus) === 'undefined') {
esnai.com.ishare.webservice.WebServiceStatus=gtc("esnai.com.ishare.webservice.WebServiceStatus");
esnai.com.ishare.webservice.WebServiceStatus.registerClass('esnai.com.ishare.webservice.WebServiceStatus');
}
if (typeof(esnai.com.ishare.webservice.iShareVoteData) === 'undefined') {
esnai.com.ishare.webservice.iShareVoteData=gtc("esnai.com.ishare.webservice.iShareVoteData");
esnai.com.ishare.webservice.iShareVoteData.registerClass('esnai.com.ishare.webservice.iShareVoteData');
}
