Type.registerNamespace('AliveAndGiving');
AliveAndGiving.AAGService=function() {
AliveAndGiving.AAGService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
AliveAndGiving.AAGService.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return AliveAndGiving.AAGService._staticInstance.get_path();},
GetCompletionList:function(prefixText,count,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetCompletionList',false,{prefixText:prefixText,count:count},succeededCallback,failedCallback,userContext); },
GetCharyityNameCompletionList:function(prefixText,count,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetCharyityNameCompletionList',false,{prefixText:prefixText,count:count},succeededCallback,failedCallback,userContext); },
GetRegistrationCharyityNameCompletionList:function(prefixText,count,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetRegistrationCharyityNameCompletionList',false,{prefixText:prefixText,count:count},succeededCallback,failedCallback,userContext); },
LocationIsExist:function(value,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'LocationIsExist',false,{value:value},succeededCallback,failedCallback,userContext); },
LocationsIsExist:function(firstLocation,secondLocation,thirdlocation,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'LocationsIsExist',false,{firstLocation:firstLocation,secondLocation:secondLocation,thirdlocation:thirdlocation},succeededCallback,failedCallback,userContext); },
Authenticate:function(email,password,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'Authenticate',false,{email:email,password:password},succeededCallback,failedCallback,userContext); },
SendPassword:function(email,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'SendPassword',false,{email:email},succeededCallback,failedCallback,userContext); },
SaveAddress:function(userId,address1,address2,address3,housename,town,country,postcode,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'SaveAddress',false,{userId:userId,address1:address1,address2:address2,address3:address3,housename:housename,town:town,country:country,postcode:postcode},succeededCallback,failedCallback,userContext); },
GenerateChartImages:function(succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GenerateChartImages',false,{},succeededCallback,failedCallback,userContext); },
GetChartImagesCount:function(succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetChartImagesCount',false,{},succeededCallback,failedCallback,userContext); },
GetChartImagesStatus:function(succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetChartImagesStatus',false,{},succeededCallback,failedCallback,userContext); },
SendReport:function(firstName,surName,telephone,email,reason,message,url,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'SendReport',false,{firstName:firstName,surName:surName,telephone:telephone,email:email,reason:reason,message:message,url:url},succeededCallback,failedCallback,userContext); },
ContactUs:function(firstName,surName,telephone,email,message,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'ContactUs',false,{firstName:firstName,surName:surName,telephone:telephone,email:email,message:message},succeededCallback,failedCallback,userContext); },
CharityContactUs:function(charityName,charityNumber,firstName,surName,telephone,email,message,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'CharityContactUs',false,{charityName:charityName,charityNumber:charityNumber,firstName:firstName,surName:surName,telephone:telephone,email:email,message:message},succeededCallback,failedCallback,userContext); },
IsEmailExists:function(email,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'IsEmailExists',false,{email:email},succeededCallback,failedCallback,userContext); },
GetAdFilesHtml:function(succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetAdFilesHtml',false,{},succeededCallback,failedCallback,userContext); },
CharityExists:function(name,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'CharityExists',false,{name:name},succeededCallback,failedCallback,userContext); },
ValidateCharityDetails:function(charityName,charityRegno,userEmail,userId,isEdit,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'ValidateCharityDetails',false,{charityName:charityName,charityRegno:charityRegno,userEmail:userEmail,userId:userId,isEdit:isEdit},succeededCallback,failedCallback,userContext); },
SetCMSPreview:function(charityID,cmsContent,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'SetCMSPreview',false,{charityID:charityID,cmsContent:cmsContent},succeededCallback,failedCallback,userContext); },
SetADSPreview:function(cmsContent,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'SetADSPreview',false,{cmsContent:cmsContent},succeededCallback,failedCallback,userContext); }}
AliveAndGiving.AAGService.registerClass('AliveAndGiving.AAGService',Sys.Net.WebServiceProxy);
AliveAndGiving.AAGService._staticInstance = new AliveAndGiving.AAGService();
AliveAndGiving.AAGService.set_path = function(value) { AliveAndGiving.AAGService._staticInstance.set_path(value); }
AliveAndGiving.AAGService.get_path = function() { return AliveAndGiving.AAGService._staticInstance.get_path(); }
AliveAndGiving.AAGService.set_timeout = function(value) { AliveAndGiving.AAGService._staticInstance.set_timeout(value); }
AliveAndGiving.AAGService.get_timeout = function() { return AliveAndGiving.AAGService._staticInstance.get_timeout(); }
AliveAndGiving.AAGService.set_defaultUserContext = function(value) { AliveAndGiving.AAGService._staticInstance.set_defaultUserContext(value); }
AliveAndGiving.AAGService.get_defaultUserContext = function() { return AliveAndGiving.AAGService._staticInstance.get_defaultUserContext(); }
AliveAndGiving.AAGService.set_defaultSucceededCallback = function(value) { AliveAndGiving.AAGService._staticInstance.set_defaultSucceededCallback(value); }
AliveAndGiving.AAGService.get_defaultSucceededCallback = function() { return AliveAndGiving.AAGService._staticInstance.get_defaultSucceededCallback(); }
AliveAndGiving.AAGService.set_defaultFailedCallback = function(value) { AliveAndGiving.AAGService._staticInstance.set_defaultFailedCallback(value); }
AliveAndGiving.AAGService.get_defaultFailedCallback = function() { return AliveAndGiving.AAGService._staticInstance.get_defaultFailedCallback(); }
AliveAndGiving.AAGService.set_path("/AAGService.asmx");
AliveAndGiving.AAGService.GetCompletionList= function(prefixText,count,onSuccess,onFailed,userContext) {AliveAndGiving.AAGService._staticInstance.GetCompletionList(prefixText,count,onSuccess,onFailed,userContext); }
AliveAndGiving.AAGService.GetCharyityNameCompletionList= function(prefixText,count,onSuccess,onFailed,userContext) {AliveAndGiving.AAGService._staticInstance.GetCharyityNameCompletionList(prefixText,count,onSuccess,onFailed,userContext); }
AliveAndGiving.AAGService.GetRegistrationCharyityNameCompletionList= function(prefixText,count,onSuccess,onFailed,userContext) {AliveAndGiving.AAGService._staticInstance.GetRegistrationCharyityNameCompletionList(prefixText,count,onSuccess,onFailed,userContext); }
AliveAndGiving.AAGService.LocationIsExist= function(value,onSuccess,onFailed,userContext) {AliveAndGiving.AAGService._staticInstance.LocationIsExist(value,onSuccess,onFailed,userContext); }
AliveAndGiving.AAGService.LocationsIsExist= function(firstLocation,secondLocation,thirdlocation,onSuccess,onFailed,userContext) {AliveAndGiving.AAGService._staticInstance.LocationsIsExist(firstLocation,secondLocation,thirdlocation,onSuccess,onFailed,userContext); }
AliveAndGiving.AAGService.Authenticate= function(email,password,onSuccess,onFailed,userContext) {AliveAndGiving.AAGService._staticInstance.Authenticate(email,password,onSuccess,onFailed,userContext); }
AliveAndGiving.AAGService.SendPassword= function(email,onSuccess,onFailed,userContext) {AliveAndGiving.AAGService._staticInstance.SendPassword(email,onSuccess,onFailed,userContext); }
AliveAndGiving.AAGService.SaveAddress= function(userId,address1,address2,address3,housename,town,country,postcode,onSuccess,onFailed,userContext) {AliveAndGiving.AAGService._staticInstance.SaveAddress(userId,address1,address2,address3,housename,town,country,postcode,onSuccess,onFailed,userContext); }
AliveAndGiving.AAGService.GenerateChartImages= function(onSuccess,onFailed,userContext) {AliveAndGiving.AAGService._staticInstance.GenerateChartImages(onSuccess,onFailed,userContext); }
AliveAndGiving.AAGService.GetChartImagesCount= function(onSuccess,onFailed,userContext) {AliveAndGiving.AAGService._staticInstance.GetChartImagesCount(onSuccess,onFailed,userContext); }
AliveAndGiving.AAGService.GetChartImagesStatus= function(onSuccess,onFailed,userContext) {AliveAndGiving.AAGService._staticInstance.GetChartImagesStatus(onSuccess,onFailed,userContext); }
AliveAndGiving.AAGService.SendReport= function(firstName,surName,telephone,email,reason,message,url,onSuccess,onFailed,userContext) {AliveAndGiving.AAGService._staticInstance.SendReport(firstName,surName,telephone,email,reason,message,url,onSuccess,onFailed,userContext); }
AliveAndGiving.AAGService.ContactUs= function(firstName,surName,telephone,email,message,onSuccess,onFailed,userContext) {AliveAndGiving.AAGService._staticInstance.ContactUs(firstName,surName,telephone,email,message,onSuccess,onFailed,userContext); }
AliveAndGiving.AAGService.CharityContactUs= function(charityName,charityNumber,firstName,surName,telephone,email,message,onSuccess,onFailed,userContext) {AliveAndGiving.AAGService._staticInstance.CharityContactUs(charityName,charityNumber,firstName,surName,telephone,email,message,onSuccess,onFailed,userContext); }
AliveAndGiving.AAGService.IsEmailExists= function(email,onSuccess,onFailed,userContext) {AliveAndGiving.AAGService._staticInstance.IsEmailExists(email,onSuccess,onFailed,userContext); }
AliveAndGiving.AAGService.GetAdFilesHtml= function(onSuccess,onFailed,userContext) {AliveAndGiving.AAGService._staticInstance.GetAdFilesHtml(onSuccess,onFailed,userContext); }
AliveAndGiving.AAGService.CharityExists= function(name,onSuccess,onFailed,userContext) {AliveAndGiving.AAGService._staticInstance.CharityExists(name,onSuccess,onFailed,userContext); }
AliveAndGiving.AAGService.ValidateCharityDetails= function(charityName,charityRegno,userEmail,userId,isEdit,onSuccess,onFailed,userContext) {AliveAndGiving.AAGService._staticInstance.ValidateCharityDetails(charityName,charityRegno,userEmail,userId,isEdit,onSuccess,onFailed,userContext); }
AliveAndGiving.AAGService.SetCMSPreview= function(charityID,cmsContent,onSuccess,onFailed,userContext) {AliveAndGiving.AAGService._staticInstance.SetCMSPreview(charityID,cmsContent,onSuccess,onFailed,userContext); }
AliveAndGiving.AAGService.SetADSPreview= function(cmsContent,onSuccess,onFailed,userContext) {AliveAndGiving.AAGService._staticInstance.SetADSPreview(cmsContent,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
if (typeof(AliveAndGiving.LocationsIsValid) === 'undefined') {
AliveAndGiving.LocationsIsValid=gtc("AliveAndGiving.LocationsIsValid");
AliveAndGiving.LocationsIsValid.registerClass('AliveAndGiving.LocationsIsValid');
}

