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