var Service=function() {
Service.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
Service.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return Service._staticInstance.get_path();},
SubjectIDGet:function(SearchTerm,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'SubjectIDGet',false,{SearchTerm:SearchTerm},succeededCallback,failedCallback,userContext); },
ContactUs:function(FromName,EmailSender,DepartmentID,Message,Captcha,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'ContactUs',false,{FromName:FromName,EmailSender:EmailSender,DepartmentID:DepartmentID,Message:Message,Captcha:Captcha},succeededCallback,failedCallback,userContext); },
ChangeLanguage:function(CultureCode,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'ChangeLanguage',false,{CultureCode:CultureCode},succeededCallback,failedCallback,userContext); },
GetTime:function(Time,Minutes,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetTime',false,{Time:Time,Minutes:Minutes},succeededCallback,failedCallback,userContext); },
AddComment:function(PageID,Comment,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'AddComment',false,{PageID:PageID,Comment:Comment},succeededCallback,failedCallback,userContext); },
DeleteComment:function(PageCommentID,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'DeleteComment',false,{PageCommentID:PageCommentID},succeededCallback,failedCallback,userContext); },
LoadPage:function(PageID,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'LoadPage',false,{PageID:PageID},succeededCallback,failedCallback,userContext); },
SavePage:function(PageID,ttl,content,intro,IsLive,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'SavePage',false,{PageID:PageID,ttl:ttl,content:content,intro:intro,IsLive:IsLive},succeededCallback,failedCallback,userContext); },
FBConnect2:function(FBUID,MembershipTypeID,CanStream,FirstName,LastName,Email,PhotoSquare,PhotoBig,Location,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'FBConnect2',false,{FBUID:FBUID,MembershipTypeID:MembershipTypeID,CanStream:CanStream,FirstName:FirstName,LastName:LastName,Email:Email,PhotoSquare:PhotoSquare,PhotoBig:PhotoBig,Location:Location},succeededCallback,failedCallback,userContext); },
FBMerge2:function(FBUID,PublishToStream,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'FBMerge2',false,{FBUID:FBUID,PublishToStream:PublishToStream},succeededCallback,failedCallback,userContext); },
NotifySet:function(Notify,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'NotifySet',false,{Notify:Notify},succeededCallback,failedCallback,userContext); },
VerifyEmail:function(succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'VerifyEmail',false,{},succeededCallback,failedCallback,userContext); },
CreateAccount:function(Username,Email,Password,PasswordConfirm,FirstName,LastName,CountryID,Newsletter,BasedIn,AgreeTerms,MembershipTypeID,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'CreateAccount',false,{Username:Username,Email:Email,Password:Password,PasswordConfirm:PasswordConfirm,FirstName:FirstName,LastName:LastName,CountryID:CountryID,Newsletter:Newsletter,BasedIn:BasedIn,AgreeTerms:AgreeTerms,MembershipTypeID:MembershipTypeID},succeededCallback,failedCallback,userContext); },
UpdateAccount:function(Email,Password,PasswordConfirm,FirstName,LastName,ReferrerCode,Newsletter,MobilePhone,Address1,Address2,City,State,TimeZone,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'UpdateAccount',false,{Email:Email,Password:Password,PasswordConfirm:PasswordConfirm,FirstName:FirstName,LastName:LastName,ReferrerCode:ReferrerCode,Newsletter:Newsletter,MobilePhone:MobilePhone,Address1:Address1,Address2:Address2,City:City,State:State,TimeZone:TimeZone},succeededCallback,failedCallback,userContext); },
CloseAccount:function(Understand,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'CloseAccount',false,{Understand:Understand},succeededCallback,failedCallback,userContext); },
SetLocationByName:function(BasedIn,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'SetLocationByName',false,{BasedIn:BasedIn},succeededCallback,failedCallback,userContext); },
SetLocation:function(Lat,Lng,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'SetLocation',false,{Lat:Lat,Lng:Lng},succeededCallback,failedCallback,userContext); },
TeacherMiniProfile:function(TeacherProfileID,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'TeacherMiniProfile',false,{TeacherProfileID:TeacherProfileID},succeededCallback,failedCallback,userContext); },
AddFriends:function(EmailAddresses,Message,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'AddFriends',false,{EmailAddresses:EmailAddresses,Message:Message},succeededCallback,failedCallback,userContext); },
Search:function(SearchTerm,TextBoxID,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'Search',false,{SearchTerm:SearchTerm,TextBoxID:TextBoxID},succeededCallback,failedCallback,userContext); },
SubjectSearch:function(SearchTerm,TextBoxID,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'SubjectSearch',false,{SearchTerm:SearchTerm,TextBoxID:TextBoxID},succeededCallback,failedCallback,userContext); },
FeedbackLeave:function(MessageIdent,FeedbackTypeID,TutorProfileID,Feedback,MakePublic,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'FeedbackLeave',false,{MessageIdent:MessageIdent,FeedbackTypeID:FeedbackTypeID,TutorProfileID:TutorProfileID,Feedback:Feedback,MakePublic:MakePublic},succeededCallback,failedCallback,userContext); },
AddTeacherSubject:function(SubjectName,Keywords,CategoryID,TeacherTitleID,BookingNameID,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'AddTeacherSubject',false,{SubjectName:SubjectName,Keywords:Keywords,CategoryID:CategoryID,TeacherTitleID:TeacherTitleID,BookingNameID:BookingNameID},succeededCallback,failedCallback,userContext); },
TutorProfileUpdate:function(TutorProfileID,Experience,Keywords,MinimumAge,MinimumFee,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'TutorProfileUpdate',false,{TutorProfileID:TutorProfileID,Experience:Experience,Keywords:Keywords,MinimumAge:MinimumAge,MinimumFee:MinimumFee},succeededCallback,failedCallback,userContext); },
GetAvailability:function(UserID,StartDate,ReadOnly,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetAvailability',false,{UserID:UserID,StartDate:StartDate,ReadOnly:ReadOnly},succeededCallback,failedCallback,userContext); },
CheckDateRange:function(StartDay,StartMonth,StartYear,EndDay,EndMonth,EndYear,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'CheckDateRange',false,{StartDay:StartDay,StartMonth:StartMonth,StartYear:StartYear,EndDay:EndDay,EndMonth:EndMonth,EndYear:EndYear},succeededCallback,failedCallback,userContext); },
UpdateTeacherProfile:function(Details,Qualifications,SpokenLanguages,Suburbs,Workhours,WorkHourExemptions,TeachOnline,WWCC,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'UpdateTeacherProfile',false,{Details:Details,Qualifications:Qualifications,SpokenLanguages:SpokenLanguages,Suburbs:Suburbs,Workhours:Workhours,WorkHourExemptions:WorkHourExemptions,TeachOnline:TeachOnline,WWCC:WWCC},succeededCallback,failedCallback,userContext); },
RemoveTutorProfile:function(TutorProfileID,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'RemoveTutorProfile',false,{TutorProfileID:TutorProfileID},succeededCallback,failedCallback,userContext); },
SubjectAddToTeacher:function(SubjectID,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'SubjectAddToTeacher',false,{SubjectID:SubjectID},succeededCallback,failedCallback,userContext); },
ContactMessageSend:function(To,Subject,Message,Referer,Captcha,PhoneNumber,EmailAddress,TutorProfileID,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'ContactMessageSend',false,{To:To,Subject:Subject,Message:Message,Referer:Referer,Captcha:Captcha,PhoneNumber:PhoneNumber,EmailAddress:EmailAddress,TutorProfileID:TutorProfileID},succeededCallback,failedCallback,userContext); },
DeleteMessages:function(MessageCSV,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'DeleteMessages',false,{MessageCSV:MessageCSV},succeededCallback,failedCallback,userContext); },
MessagesGet:function(ListMode,PageIndex,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'MessagesGet',false,{ListMode:ListMode,PageIndex:PageIndex},succeededCallback,failedCallback,userContext); },
MessageGet:function(MessageID,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'MessageGet',false,{MessageID:MessageID},succeededCallback,failedCallback,userContext); },
Login:function(Username,Password,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'Login',false,{Username:Username,Password:Password},succeededCallback,failedCallback,userContext); },
SendPassword:function(Email,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'SendPassword',false,{Email:Email},succeededCallback,failedCallback,userContext); },
CompleteSurvey:function(SurveyID,SurveyAnswers,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'CompleteSurvey',false,{SurveyID:SurveyID,SurveyAnswers:SurveyAnswers},succeededCallback,failedCallback,userContext); },
TwitterPollUpdate:function(Days,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'TwitterPollUpdate',false,{Days:Days},succeededCallback,failedCallback,userContext); },
TwitterGetAuthenticationLink:function(MembershipTypeID,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'TwitterGetAuthenticationLink',false,{MembershipTypeID:MembershipTypeID},succeededCallback,failedCallback,userContext); },
SEOCourseUpdate:function(Subscribe,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'SEOCourseUpdate',false,{Subscribe:Subscribe},succeededCallback,failedCallback,userContext); },
SubscriptionCreate:function(SubscriptionTypeID,MethodIndex,PayMethod,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'SubscriptionCreate',false,{SubscriptionTypeID:SubscriptionTypeID,MethodIndex:MethodIndex,PayMethod:PayMethod},succeededCallback,failedCallback,userContext); }}
Service.registerClass('Service',Sys.Net.WebServiceProxy);
Service._staticInstance = new Service();
Service.set_path = function(value) { Service._staticInstance.set_path(value); }
Service.get_path = function() { return Service._staticInstance.get_path(); }
Service.set_timeout = function(value) { Service._staticInstance.set_timeout(value); }
Service.get_timeout = function() { return Service._staticInstance.get_timeout(); }
Service.set_defaultUserContext = function(value) { Service._staticInstance.set_defaultUserContext(value); }
Service.get_defaultUserContext = function() { return Service._staticInstance.get_defaultUserContext(); }
Service.set_defaultSucceededCallback = function(value) { Service._staticInstance.set_defaultSucceededCallback(value); }
Service.get_defaultSucceededCallback = function() { return Service._staticInstance.get_defaultSucceededCallback(); }
Service.set_defaultFailedCallback = function(value) { Service._staticInstance.set_defaultFailedCallback(value); }
Service.get_defaultFailedCallback = function() { return Service._staticInstance.get_defaultFailedCallback(); }
Service.set_path("/Service.asmx");
Service.SubjectIDGet= function(SearchTerm,onSuccess,onFailed,userContext) {Service._staticInstance.SubjectIDGet(SearchTerm,onSuccess,onFailed,userContext); }
Service.ContactUs= function(FromName,EmailSender,DepartmentID,Message,Captcha,onSuccess,onFailed,userContext) {Service._staticInstance.ContactUs(FromName,EmailSender,DepartmentID,Message,Captcha,onSuccess,onFailed,userContext); }
Service.ChangeLanguage= function(CultureCode,onSuccess,onFailed,userContext) {Service._staticInstance.ChangeLanguage(CultureCode,onSuccess,onFailed,userContext); }
Service.GetTime= function(Time,Minutes,onSuccess,onFailed,userContext) {Service._staticInstance.GetTime(Time,Minutes,onSuccess,onFailed,userContext); }
Service.AddComment= function(PageID,Comment,onSuccess,onFailed,userContext) {Service._staticInstance.AddComment(PageID,Comment,onSuccess,onFailed,userContext); }
Service.DeleteComment= function(PageCommentID,onSuccess,onFailed,userContext) {Service._staticInstance.DeleteComment(PageCommentID,onSuccess,onFailed,userContext); }
Service.LoadPage= function(PageID,onSuccess,onFailed,userContext) {Service._staticInstance.LoadPage(PageID,onSuccess,onFailed,userContext); }
Service.SavePage= function(PageID,ttl,content,intro,IsLive,onSuccess,onFailed,userContext) {Service._staticInstance.SavePage(PageID,ttl,content,intro,IsLive,onSuccess,onFailed,userContext); }
Service.FBConnect2= function(FBUID,MembershipTypeID,CanStream,FirstName,LastName,Email,PhotoSquare,PhotoBig,Location,onSuccess,onFailed,userContext) {Service._staticInstance.FBConnect2(FBUID,MembershipTypeID,CanStream,FirstName,LastName,Email,PhotoSquare,PhotoBig,Location,onSuccess,onFailed,userContext); }
Service.FBMerge2= function(FBUID,PublishToStream,onSuccess,onFailed,userContext) {Service._staticInstance.FBMerge2(FBUID,PublishToStream,onSuccess,onFailed,userContext); }
Service.NotifySet= function(Notify,onSuccess,onFailed,userContext) {Service._staticInstance.NotifySet(Notify,onSuccess,onFailed,userContext); }
Service.VerifyEmail= function(onSuccess,onFailed,userContext) {Service._staticInstance.VerifyEmail(onSuccess,onFailed,userContext); }
Service.CreateAccount= function(Username,Email,Password,PasswordConfirm,FirstName,LastName,CountryID,Newsletter,BasedIn,AgreeTerms,MembershipTypeID,onSuccess,onFailed,userContext) {Service._staticInstance.CreateAccount(Username,Email,Password,PasswordConfirm,FirstName,LastName,CountryID,Newsletter,BasedIn,AgreeTerms,MembershipTypeID,onSuccess,onFailed,userContext); }
Service.UpdateAccount= function(Email,Password,PasswordConfirm,FirstName,LastName,ReferrerCode,Newsletter,MobilePhone,Address1,Address2,City,State,TimeZone,onSuccess,onFailed,userContext) {Service._staticInstance.UpdateAccount(Email,Password,PasswordConfirm,FirstName,LastName,ReferrerCode,Newsletter,MobilePhone,Address1,Address2,City,State,TimeZone,onSuccess,onFailed,userContext); }
Service.CloseAccount= function(Understand,onSuccess,onFailed,userContext) {Service._staticInstance.CloseAccount(Understand,onSuccess,onFailed,userContext); }
Service.SetLocationByName= function(BasedIn,onSuccess,onFailed,userContext) {Service._staticInstance.SetLocationByName(BasedIn,onSuccess,onFailed,userContext); }
Service.SetLocation= function(Lat,Lng,onSuccess,onFailed,userContext) {Service._staticInstance.SetLocation(Lat,Lng,onSuccess,onFailed,userContext); }
Service.TeacherMiniProfile= function(TeacherProfileID,onSuccess,onFailed,userContext) {Service._staticInstance.TeacherMiniProfile(TeacherProfileID,onSuccess,onFailed,userContext); }
Service.AddFriends= function(EmailAddresses,Message,onSuccess,onFailed,userContext) {Service._staticInstance.AddFriends(EmailAddresses,Message,onSuccess,onFailed,userContext); }
Service.Search= function(SearchTerm,TextBoxID,onSuccess,onFailed,userContext) {Service._staticInstance.Search(SearchTerm,TextBoxID,onSuccess,onFailed,userContext); }
Service.SubjectSearch= function(SearchTerm,TextBoxID,onSuccess,onFailed,userContext) {Service._staticInstance.SubjectSearch(SearchTerm,TextBoxID,onSuccess,onFailed,userContext); }
Service.FeedbackLeave= function(MessageIdent,FeedbackTypeID,TutorProfileID,Feedback,MakePublic,onSuccess,onFailed,userContext) {Service._staticInstance.FeedbackLeave(MessageIdent,FeedbackTypeID,TutorProfileID,Feedback,MakePublic,onSuccess,onFailed,userContext); }
Service.AddTeacherSubject= function(SubjectName,Keywords,CategoryID,TeacherTitleID,BookingNameID,onSuccess,onFailed,userContext) {Service._staticInstance.AddTeacherSubject(SubjectName,Keywords,CategoryID,TeacherTitleID,BookingNameID,onSuccess,onFailed,userContext); }
Service.TutorProfileUpdate= function(TutorProfileID,Experience,Keywords,MinimumAge,MinimumFee,onSuccess,onFailed,userContext) {Service._staticInstance.TutorProfileUpdate(TutorProfileID,Experience,Keywords,MinimumAge,MinimumFee,onSuccess,onFailed,userContext); }
Service.GetAvailability= function(UserID,StartDate,ReadOnly,onSuccess,onFailed,userContext) {Service._staticInstance.GetAvailability(UserID,StartDate,ReadOnly,onSuccess,onFailed,userContext); }
Service.CheckDateRange= function(StartDay,StartMonth,StartYear,EndDay,EndMonth,EndYear,onSuccess,onFailed,userContext) {Service._staticInstance.CheckDateRange(StartDay,StartMonth,StartYear,EndDay,EndMonth,EndYear,onSuccess,onFailed,userContext); }
Service.UpdateTeacherProfile= function(Details,Qualifications,SpokenLanguages,Suburbs,Workhours,WorkHourExemptions,TeachOnline,WWCC,onSuccess,onFailed,userContext) {Service._staticInstance.UpdateTeacherProfile(Details,Qualifications,SpokenLanguages,Suburbs,Workhours,WorkHourExemptions,TeachOnline,WWCC,onSuccess,onFailed,userContext); }
Service.RemoveTutorProfile= function(TutorProfileID,onSuccess,onFailed,userContext) {Service._staticInstance.RemoveTutorProfile(TutorProfileID,onSuccess,onFailed,userContext); }
Service.SubjectAddToTeacher= function(SubjectID,onSuccess,onFailed,userContext) {Service._staticInstance.SubjectAddToTeacher(SubjectID,onSuccess,onFailed,userContext); }
Service.ContactMessageSend= function(To,Subject,Message,Referer,Captcha,PhoneNumber,EmailAddress,TutorProfileID,onSuccess,onFailed,userContext) {Service._staticInstance.ContactMessageSend(To,Subject,Message,Referer,Captcha,PhoneNumber,EmailAddress,TutorProfileID,onSuccess,onFailed,userContext); }
Service.DeleteMessages= function(MessageCSV,onSuccess,onFailed,userContext) {Service._staticInstance.DeleteMessages(MessageCSV,onSuccess,onFailed,userContext); }
Service.MessagesGet= function(ListMode,PageIndex,onSuccess,onFailed,userContext) {Service._staticInstance.MessagesGet(ListMode,PageIndex,onSuccess,onFailed,userContext); }
Service.MessageGet= function(MessageID,onSuccess,onFailed,userContext) {Service._staticInstance.MessageGet(MessageID,onSuccess,onFailed,userContext); }
Service.Login= function(Username,Password,onSuccess,onFailed,userContext) {Service._staticInstance.Login(Username,Password,onSuccess,onFailed,userContext); }
Service.SendPassword= function(Email,onSuccess,onFailed,userContext) {Service._staticInstance.SendPassword(Email,onSuccess,onFailed,userContext); }
Service.CompleteSurvey= function(SurveyID,SurveyAnswers,onSuccess,onFailed,userContext) {Service._staticInstance.CompleteSurvey(SurveyID,SurveyAnswers,onSuccess,onFailed,userContext); }
Service.TwitterPollUpdate= function(Days,onSuccess,onFailed,userContext) {Service._staticInstance.TwitterPollUpdate(Days,onSuccess,onFailed,userContext); }
Service.TwitterGetAuthenticationLink= function(MembershipTypeID,onSuccess,onFailed,userContext) {Service._staticInstance.TwitterGetAuthenticationLink(MembershipTypeID,onSuccess,onFailed,userContext); }
Service.SEOCourseUpdate= function(Subscribe,onSuccess,onFailed,userContext) {Service._staticInstance.SEOCourseUpdate(Subscribe,onSuccess,onFailed,userContext); }
Service.SubscriptionCreate= function(SubscriptionTypeID,MethodIndex,PayMethod,onSuccess,onFailed,userContext) {Service._staticInstance.SubscriptionCreate(SubscriptionTypeID,MethodIndex,PayMethod,onSuccess,onFailed,userContext); }

