var Service=function() {
Service.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
Service.prototype={
GetGender:function(title,succeededCallback, failedCallback, userContext) {
return this._invoke(Service.get_path(), 'GetGender',false,{title:title},succeededCallback,failedCallback,userContext); },
IsNewQuote:function(succeededCallback, failedCallback, userContext) {
return this._invoke(Service.get_path(), 'IsNewQuote',false,{},succeededCallback,failedCallback,userContext); },
GetCoverTypeSelections:function(ownership,succeededCallback, failedCallback, userContext) {
return this._invoke(Service.get_path(), 'GetCoverTypeSelections',false,{ownership:ownership},succeededCallback,failedCallback,userContext); },
GetWhoLivesInPropertyChildList:function(whichApplies,ownership,succeededCallback, failedCallback, userContext) {
return this._invoke(Service.get_path(), 'GetWhoLivesInPropertyChildList',false,{whichApplies:whichApplies,ownership:ownership},succeededCallback,failedCallback,userContext); },
GetWhoLivesInProperty:function(occupancy,ownership,succeededCallback, failedCallback, userContext) {
return this._invoke(Service.get_path(), 'GetWhoLivesInProperty',false,{occupancy:occupancy,ownership:ownership},succeededCallback,failedCallback,userContext); },
GetAllRisksTotalValue:function(unspecifiedValue,succeededCallback, failedCallback, userContext) {
return this._invoke(Service.get_path(), 'GetAllRisksTotalValue',false,{unspecifiedValue:unspecifiedValue},succeededCallback,failedCallback,userContext); },
SaveAllRisksItem:function(itemDescription,itemValue,succeededCallback, failedCallback, userContext) {
return this._invoke(Service.get_path(), 'SaveAllRisksItem',false,{itemDescription:itemDescription,itemValue:itemValue},succeededCallback,failedCallback,userContext); },
GetAllRisksItems:function(succeededCallback, failedCallback, userContext) {
return this._invoke(Service.get_path(), 'GetAllRisksItems',false,{},succeededCallback,failedCallback,userContext); },
RemoveAllRisksItem:function(removeIndex,succeededCallback, failedCallback, userContext) {
return this._invoke(Service.get_path(), 'RemoveAllRisksItem',false,{removeIndex:removeIndex},succeededCallback,failedCallback,userContext); },
GetBikeTotalValue:function(succeededCallback, failedCallback, userContext) {
return this._invoke(Service.get_path(), 'GetBikeTotalValue',false,{},succeededCallback,failedCallback,userContext); },
SaveBike:function(bikeDescription,bikeValue,succeededCallback, failedCallback, userContext) {
return this._invoke(Service.get_path(), 'SaveBike',false,{bikeDescription:bikeDescription,bikeValue:bikeValue},succeededCallback,failedCallback,userContext); },
GetBikes:function(succeededCallback, failedCallback, userContext) {
return this._invoke(Service.get_path(), 'GetBikes',false,{},succeededCallback,failedCallback,userContext); },
RemoveBike:function(removeIndex,succeededCallback, failedCallback, userContext) {
return this._invoke(Service.get_path(), 'RemoveBike',false,{removeIndex:removeIndex},succeededCallback,failedCallback,userContext); },
SaveMobilePhone:function(mobilePhoneMake,mobilePhoneModel,payAsYouGo,succeededCallback, failedCallback, userContext) {
return this._invoke(Service.get_path(), 'SaveMobilePhone',false,{mobilePhoneMake:mobilePhoneMake,mobilePhoneModel:mobilePhoneModel,payAsYouGo:payAsYouGo},succeededCallback,failedCallback,userContext); },
GetMobilePhones:function(succeededCallback, failedCallback, userContext) {
return this._invoke(Service.get_path(), 'GetMobilePhones',false,{},succeededCallback,failedCallback,userContext); },
RemoveMobilePhone:function(removeIndex,succeededCallback, failedCallback, userContext) {
return this._invoke(Service.get_path(), 'RemoveMobilePhone',false,{removeIndex:removeIndex},succeededCallback,failedCallback,userContext); }}
Service.registerClass('Service',Sys.Net.WebServiceProxy);
Service._staticInstance = new Service();
Service.set_path = function(value) { Service._staticInstance._path = value; }
Service.get_path = function() { return Service._staticInstance._path; }
Service.set_timeout = function(value) { Service._staticInstance._timeout = value; }
Service.get_timeout = function() { return Service._staticInstance._timeout; }
Service.set_defaultUserContext = function(value) { Service._staticInstance._userContext = value; }
Service.get_defaultUserContext = function() { return Service._staticInstance._userContext; }
Service.set_defaultSucceededCallback = function(value) { Service._staticInstance._succeeded = value; }
Service.get_defaultSucceededCallback = function() { return Service._staticInstance._succeeded; }
Service.set_defaultFailedCallback = function(value) { Service._staticInstance._failed = value; }
Service.get_defaultFailedCallback = function() { return Service._staticInstance._failed; }
Service.set_path("/Service.asmx");
Service.GetGender= function(title,onSuccess,onFailed,userContext) {Service._staticInstance.GetGender(title,onSuccess,onFailed,userContext); }
Service.IsNewQuote= function(onSuccess,onFailed,userContext) {Service._staticInstance.IsNewQuote(onSuccess,onFailed,userContext); }
Service.GetCoverTypeSelections= function(ownership,onSuccess,onFailed,userContext) {Service._staticInstance.GetCoverTypeSelections(ownership,onSuccess,onFailed,userContext); }
Service.GetWhoLivesInPropertyChildList= function(whichApplies,ownership,onSuccess,onFailed,userContext) {Service._staticInstance.GetWhoLivesInPropertyChildList(whichApplies,ownership,onSuccess,onFailed,userContext); }
Service.GetWhoLivesInProperty= function(occupancy,ownership,onSuccess,onFailed,userContext) {Service._staticInstance.GetWhoLivesInProperty(occupancy,ownership,onSuccess,onFailed,userContext); }
Service.GetAllRisksTotalValue= function(unspecifiedValue,onSuccess,onFailed,userContext) {Service._staticInstance.GetAllRisksTotalValue(unspecifiedValue,onSuccess,onFailed,userContext); }
Service.SaveAllRisksItem= function(itemDescription,itemValue,onSuccess,onFailed,userContext) {Service._staticInstance.SaveAllRisksItem(itemDescription,itemValue,onSuccess,onFailed,userContext); }
Service.GetAllRisksItems= function(onSuccess,onFailed,userContext) {Service._staticInstance.GetAllRisksItems(onSuccess,onFailed,userContext); }
Service.RemoveAllRisksItem= function(removeIndex,onSuccess,onFailed,userContext) {Service._staticInstance.RemoveAllRisksItem(removeIndex,onSuccess,onFailed,userContext); }
Service.GetBikeTotalValue= function(onSuccess,onFailed,userContext) {Service._staticInstance.GetBikeTotalValue(onSuccess,onFailed,userContext); }
Service.SaveBike= function(bikeDescription,bikeValue,onSuccess,onFailed,userContext) {Service._staticInstance.SaveBike(bikeDescription,bikeValue,onSuccess,onFailed,userContext); }
Service.GetBikes= function(onSuccess,onFailed,userContext) {Service._staticInstance.GetBikes(onSuccess,onFailed,userContext); }
Service.RemoveBike= function(removeIndex,onSuccess,onFailed,userContext) {Service._staticInstance.RemoveBike(removeIndex,onSuccess,onFailed,userContext); }
Service.SaveMobilePhone= function(mobilePhoneMake,mobilePhoneModel,payAsYouGo,onSuccess,onFailed,userContext) {Service._staticInstance.SaveMobilePhone(mobilePhoneMake,mobilePhoneModel,payAsYouGo,onSuccess,onFailed,userContext); }
Service.GetMobilePhones= function(onSuccess,onFailed,userContext) {Service._staticInstance.GetMobilePhones(onSuccess,onFailed,userContext); }
Service.RemoveMobilePhone= function(removeIndex,onSuccess,onFailed,userContext) {Service._staticInstance.RemoveMobilePhone(removeIndex,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
if (typeof(CoverTypeSelectionDetails) === 'undefined') {
var CoverTypeSelectionDetails=gtc("CoverTypeSelectionDetails");
CoverTypeSelectionDetails.registerClass('CoverTypeSelectionDetails');
}
if (typeof(WhoLiveInPropertyChildListDetails) === 'undefined') {
var WhoLiveInPropertyChildListDetails=gtc("WhoLiveInPropertyChildListDetails");
WhoLiveInPropertyChildListDetails.registerClass('WhoLiveInPropertyChildListDetails');
}
if (typeof(WhoLiveInPropertyDetails) === 'undefined') {
var WhoLiveInPropertyDetails=gtc("WhoLiveInPropertyDetails");
WhoLiveInPropertyDetails.registerClass('WhoLiveInPropertyDetails');
}
if (typeof(ItemDetails) === 'undefined') {
var ItemDetails=gtc("ItemDetails");
ItemDetails.registerClass('ItemDetails');
}
if (typeof(BikeDetails) === 'undefined') {
var BikeDetails=gtc("BikeDetails");
BikeDetails.registerClass('BikeDetails');
}
if (typeof(MobilePhoneDetails) === 'undefined') {
var MobilePhoneDetails=gtc("MobilePhoneDetails");
MobilePhoneDetails.registerClass('MobilePhoneDetails');
}
