Type.registerNamespace('elwwws');
elwwws.vote=function() {
elwwws.vote.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
elwwws.vote.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return elwwws.vote._staticInstance.get_path();},
SaveVote:function(PostID,voteType,Comment,PreferNew,succeededCallback, failedCallback, userContext) {
/// <param name="PostID" type="String">System.String</param>
/// <param name="voteType" type="elwwws.vote_VoteType">elwwws.vote+VoteType</param>
/// <param name="Comment" type="String">System.String</param>
/// <param name="PreferNew" 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(), 'SaveVote',false,{PostID:PostID,voteType:voteType,Comment:Comment,PreferNew:PreferNew},succeededCallback,failedCallback,userContext); },
GetMarkup_VotePanel:function(PostID,voteTypeDesc,ProjTitle,succeededCallback, failedCallback, userContext) {
/// <param name="PostID" type="String">System.String</param>
/// <param name="voteTypeDesc" type="String">System.String</param>
/// <param name="ProjTitle" 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(), 'GetMarkup_VotePanel',false,{PostID:PostID,voteTypeDesc:voteTypeDesc,ProjTitle:ProjTitle},succeededCallback,failedCallback,userContext); },
GetMarkup_VoteResults: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(), 'GetMarkup_VoteResults',false,{},succeededCallback,failedCallback,userContext); },
GetMarkup_VoteResults_Old: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(), 'GetMarkup_VoteResults_Old',false,{},succeededCallback,failedCallback,userContext); }}
elwwws.vote.registerClass('elwwws.vote',Sys.Net.WebServiceProxy);
elwwws.vote._staticInstance = new elwwws.vote();
elwwws.vote.set_path = function(value) {
elwwws.vote._staticInstance.set_path(value); }
elwwws.vote.get_path = function() { 
/// <value type="String" mayBeNull="true">The service url.</value>
return elwwws.vote._staticInstance.get_path();}
elwwws.vote.set_timeout = function(value) {
elwwws.vote._staticInstance.set_timeout(value); }
elwwws.vote.get_timeout = function() { 
/// <value type="Number">The service timeout.</value>
return elwwws.vote._staticInstance.get_timeout(); }
elwwws.vote.set_defaultUserContext = function(value) { 
elwwws.vote._staticInstance.set_defaultUserContext(value); }
elwwws.vote.get_defaultUserContext = function() { 
/// <value mayBeNull="true">The service default user context.</value>
return elwwws.vote._staticInstance.get_defaultUserContext(); }
elwwws.vote.set_defaultSucceededCallback = function(value) { 
 elwwws.vote._staticInstance.set_defaultSucceededCallback(value); }
elwwws.vote.get_defaultSucceededCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default succeeded callback.</value>
return elwwws.vote._staticInstance.get_defaultSucceededCallback(); }
elwwws.vote.set_defaultFailedCallback = function(value) { 
elwwws.vote._staticInstance.set_defaultFailedCallback(value); }
elwwws.vote.get_defaultFailedCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default failed callback.</value>
return elwwws.vote._staticInstance.get_defaultFailedCallback(); }
elwwws.vote.set_path("/services/elww_vote.asmx");
elwwws.vote.SaveVote= function(PostID,voteType,Comment,PreferNew,onSuccess,onFailed,userContext) {
/// <param name="PostID" type="String">System.String</param>
/// <param name="voteType" type="elwwws.vote_VoteType">elwwws.vote+VoteType</param>
/// <param name="Comment" type="String">System.String</param>
/// <param name="PreferNew" 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>
elwwws.vote._staticInstance.SaveVote(PostID,voteType,Comment,PreferNew,onSuccess,onFailed,userContext); }
elwwws.vote.GetMarkup_VotePanel= function(PostID,voteTypeDesc,ProjTitle,onSuccess,onFailed,userContext) {
/// <param name="PostID" type="String">System.String</param>
/// <param name="voteTypeDesc" type="String">System.String</param>
/// <param name="ProjTitle" 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>
elwwws.vote._staticInstance.GetMarkup_VotePanel(PostID,voteTypeDesc,ProjTitle,onSuccess,onFailed,userContext); }
elwwws.vote.GetMarkup_VoteResults= 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>
elwwws.vote._staticInstance.GetMarkup_VoteResults(onSuccess,onFailed,userContext); }
elwwws.vote.GetMarkup_VoteResults_Old= 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>
elwwws.vote._staticInstance.GetMarkup_VoteResults_Old(onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
if (typeof(elwwws.VoteRtnObject) === 'undefined') {
elwwws.VoteRtnObject=gtc("elwwws.VoteRtnObject");
elwwws.VoteRtnObject.registerClass('elwwws.VoteRtnObject');
}
if (typeof(elwwws.VoteType) === 'undefined') {
elwwws.VoteType = function() { throw Error.invalidOperation(); }
elwwws.VoteType.prototype = {Gallery: 0,Video: 1,FileDownload: 2}
elwwws.VoteType.registerEnum('elwwws.VoteType', true);
}
