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