Type.registerNamespace('SRLF.Website');
SRLF.Website.Methods=function() {
SRLF.Website.Methods.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
SRLF.Website.Methods.prototype={
SetOption:function(option,succeededCallback, failedCallback, userContext) {
return this._invoke(SRLF.Website.Methods.get_path(), 'SetOption',false,{option:option},succeededCallback,failedCallback,userContext); },
GetVacationDays:function(start_date,end_date,option,succeededCallback, failedCallback, userContext) {
return this._invoke(SRLF.Website.Methods.get_path(), 'GetVacationDays',false,{start_date:start_date,end_date:end_date,option:option},succeededCallback,failedCallback,userContext); },
FindAppointment:function(email,code,succeededCallback, failedCallback, userContext) {
return this._invoke(SRLF.Website.Methods.get_path(), 'FindAppointment',false,{email:email,code:code},succeededCallback,failedCallback,userContext); },
CheckAppointment:function(first_name,last_name,email,telephone,succeededCallback, failedCallback, userContext) {
return this._invoke(SRLF.Website.Methods.get_path(), 'CheckAppointment',false,{first_name:first_name,last_name:last_name,email:email,telephone:telephone},succeededCallback,failedCallback,userContext); },
BookAppointment:function(first_name,last_name,email,telephone,slot,date,option,succeededCallback, failedCallback, userContext) {
return this._invoke(SRLF.Website.Methods.get_path(), 'BookAppointment',false,{first_name:first_name,last_name:last_name,email:email,telephone:telephone,slot:slot,date:date,option:option},succeededCallback,failedCallback,userContext); },
RescheduleAppointment:function(appointment_id,slot,date,succeededCallback, failedCallback, userContext) {
return this._invoke(SRLF.Website.Methods.get_path(), 'RescheduleAppointment',false,{appointment_id:appointment_id,slot:slot,date:date},succeededCallback,failedCallback,userContext); },
GetAvailableAppointmentTimeSlots:function(date,option,succeededCallback, failedCallback, userContext) {
return this._invoke(SRLF.Website.Methods.get_path(), 'GetAvailableAppointmentTimeSlots',false,{date:date,option:option},succeededCallback,failedCallback,userContext); },
SubmitSuggestion:function(first_name,last_name,telephone,email,comment,succeededCallback, failedCallback, userContext) {
return this._invoke(SRLF.Website.Methods.get_path(), 'SubmitSuggestion',false,{first_name:first_name,last_name:last_name,telephone:telephone,email:email,comment:comment},succeededCallback,failedCallback,userContext); }}
SRLF.Website.Methods.registerClass('SRLF.Website.Methods',Sys.Net.WebServiceProxy);
SRLF.Website.Methods._staticInstance = new SRLF.Website.Methods();
SRLF.Website.Methods.set_path = function(value) { 
var e = Function._validateParams(arguments, [{name: 'path', type: String}]); if (e) throw e; SRLF.Website.Methods._staticInstance._path = value; }
SRLF.Website.Methods.get_path = function() { return SRLF.Website.Methods._staticInstance._path; }
SRLF.Website.Methods.set_timeout = function(value) { var e = Function._validateParams(arguments, [{name: 'timeout', type: Number}]); if (e) throw e; if (value < 0) { throw Error.argumentOutOfRange('value', value, Sys.Res.invalidTimeout); }
SRLF.Website.Methods._staticInstance._timeout = value; }
SRLF.Website.Methods.get_timeout = function() { 
return SRLF.Website.Methods._staticInstance._timeout; }
SRLF.Website.Methods.set_defaultUserContext = function(value) { 
SRLF.Website.Methods._staticInstance._userContext = value; }
SRLF.Website.Methods.get_defaultUserContext = function() { 
return SRLF.Website.Methods._staticInstance._userContext; }
SRLF.Website.Methods.set_defaultSucceededCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultSucceededCallback', type: Function}]); if (e) throw e; SRLF.Website.Methods._staticInstance._succeeded = value; }
SRLF.Website.Methods.get_defaultSucceededCallback = function() { 
return SRLF.Website.Methods._staticInstance._succeeded; }
SRLF.Website.Methods.set_defaultFailedCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultFailedCallback', type: Function}]); if (e) throw e; SRLF.Website.Methods._staticInstance._failed = value; }
SRLF.Website.Methods.get_defaultFailedCallback = function() { 
return SRLF.Website.Methods._staticInstance._failed; }
SRLF.Website.Methods.set_path("/Methods.asmx");
SRLF.Website.Methods.SetOption= function(option,onSuccess,onFailed,userContext) {SRLF.Website.Methods._staticInstance.SetOption(option,onSuccess,onFailed,userContext); }
SRLF.Website.Methods.GetVacationDays= function(start_date,end_date,option,onSuccess,onFailed,userContext) {SRLF.Website.Methods._staticInstance.GetVacationDays(start_date,end_date,option,onSuccess,onFailed,userContext); }
SRLF.Website.Methods.FindAppointment= function(email,code,onSuccess,onFailed,userContext) {SRLF.Website.Methods._staticInstance.FindAppointment(email,code,onSuccess,onFailed,userContext); }
SRLF.Website.Methods.CheckAppointment= function(first_name,last_name,email,telephone,onSuccess,onFailed,userContext) {SRLF.Website.Methods._staticInstance.CheckAppointment(first_name,last_name,email,telephone,onSuccess,onFailed,userContext); }
SRLF.Website.Methods.BookAppointment= function(first_name,last_name,email,telephone,slot,date,option,onSuccess,onFailed,userContext) {SRLF.Website.Methods._staticInstance.BookAppointment(first_name,last_name,email,telephone,slot,date,option,onSuccess,onFailed,userContext); }
SRLF.Website.Methods.RescheduleAppointment= function(appointment_id,slot,date,onSuccess,onFailed,userContext) {SRLF.Website.Methods._staticInstance.RescheduleAppointment(appointment_id,slot,date,onSuccess,onFailed,userContext); }
SRLF.Website.Methods.GetAvailableAppointmentTimeSlots= function(date,option,onSuccess,onFailed,userContext) {SRLF.Website.Methods._staticInstance.GetAvailableAppointmentTimeSlots(date,option,onSuccess,onFailed,userContext); }
SRLF.Website.Methods.SubmitSuggestion= function(first_name,last_name,telephone,email,comment,onSuccess,onFailed,userContext) {SRLF.Website.Methods._staticInstance.SubmitSuggestion(first_name,last_name,telephone,email,comment,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('SRLF.Website.Components');
if (typeof(SRLF.Website.Components.VacationDay) === 'undefined') {
SRLF.Website.Components.VacationDay=gtc("SRLF.Website.Components.VacationDay");
SRLF.Website.Components.VacationDay.registerClass('SRLF.Website.Components.VacationDay');
}
if (typeof(SRLF.Website.Components.TimeSlot) === 'undefined') {
SRLF.Website.Components.TimeSlot=gtc("SRLF.Website.Components.TimeSlot");
SRLF.Website.Components.TimeSlot.registerClass('SRLF.Website.Components.TimeSlot');
}

