Type.registerNamespace('AboveThePage.WebServices');
AboveThePage.WebServices.wsAboveThePage=function() {
AboveThePage.WebServices.wsAboveThePage.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
AboveThePage.WebServices.wsAboveThePage.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return AboveThePage.WebServices.wsAboveThePage._staticInstance.get_path();},
GetBooks:function(bookVersion,succeededCallback, failedCallback, userContext) {
/// <param name="bookVersion" 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(), 'GetBooks',false,{bookVersion:bookVersion},succeededCallback,failedCallback,userContext); },
GetChapters:function(bookVersion,bookID,succeededCallback, failedCallback, userContext) {
/// <param name="bookVersion" type="String">System.String</param>
/// <param name="bookID" 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(), 'GetChapters',false,{bookVersion:bookVersion,bookID:bookID},succeededCallback,failedCallback,userContext); },
GetVerses:function(bookVersion,bookID,chapterNumber,succeededCallback, failedCallback, userContext) {
/// <param name="bookVersion" type="String">System.String</param>
/// <param name="bookID" type="Number">System.Int32</param>
/// <param name="chapterNumber" 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(), 'GetVerses',false,{bookVersion:bookVersion,bookID:bookID,chapterNumber:chapterNumber},succeededCallback,failedCallback,userContext); },
GetContext:function(bookID,chapterNumber,verse,succeededCallback, failedCallback, userContext) {
/// <param name="bookID" type="Number">System.Int32</param>
/// <param name="chapterNumber" type="Number">System.Int32</param>
/// <param name="verse" 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(), 'GetContext',false,{bookID:bookID,chapterNumber:chapterNumber,verse:verse},succeededCallback,failedCallback,userContext); },
SaveContext:function(bookID,chapterNumber,verse,userID,text,succeededCallback, failedCallback, userContext) {
/// <param name="bookID" type="Number">System.Int32</param>
/// <param name="chapterNumber" type="Number">System.Int32</param>
/// <param name="verse" type="Number">System.Int32</param>
/// <param name="userID" type="Number">System.Int32</param>
/// <param name="text" 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(), 'SaveContext',false,{bookID:bookID,chapterNumber:chapterNumber,verse:verse,userID:userID,text:text},succeededCallback,failedCallback,userContext); },
DeleteContext:function(bookID,chapterNumber,verse,userID,succeededCallback, failedCallback, userContext) {
/// <param name="bookID" type="Number">System.Int32</param>
/// <param name="chapterNumber" type="Number">System.Int32</param>
/// <param name="verse" type="Number">System.Int32</param>
/// <param name="userID" 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(), 'DeleteContext',false,{bookID:bookID,chapterNumber:chapterNumber,verse:verse,userID:userID},succeededCallback,failedCallback,userContext); },
GetUser:function(userName,password,succeededCallback, failedCallback, userContext) {
/// <param name="userName" type="String">System.String</param>
/// <param name="password" 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(), 'GetUser',false,{userName:userName,password:password},succeededCallback,failedCallback,userContext); },
GetUserById:function(id,succeededCallback, failedCallback, userContext) {
/// <param name="id" 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(), 'GetUserById',false,{id:id},succeededCallback,failedCallback,userContext); },
SaveUser:function(userID,userName,password,email,succeededCallback, failedCallback, userContext) {
/// <param name="userID" type="Number">System.Int32</param>
/// <param name="userName" type="String">System.String</param>
/// <param name="password" type="String">System.String</param>
/// <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(), 'SaveUser',false,{userID:userID,userName:userName,password:password,email:email},succeededCallback,failedCallback,userContext); },
IsDuplicateUserName:function(userName,succeededCallback, failedCallback, userContext) {
/// <param name="userName" 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(), 'IsDuplicateUserName',false,{userName:userName},succeededCallback,failedCallback,userContext); },
SendUserNameAndPassword: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(), 'SendUserNameAndPassword',false,{email:email},succeededCallback,failedCallback,userContext); },
IsDuplicateEmail: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(), 'IsDuplicateEmail',false,{email:email},succeededCallback,failedCallback,userContext); }}
AboveThePage.WebServices.wsAboveThePage.registerClass('AboveThePage.WebServices.wsAboveThePage',Sys.Net.WebServiceProxy);
AboveThePage.WebServices.wsAboveThePage._staticInstance = new AboveThePage.WebServices.wsAboveThePage();
AboveThePage.WebServices.wsAboveThePage.set_path = function(value) {
AboveThePage.WebServices.wsAboveThePage._staticInstance.set_path(value); }
AboveThePage.WebServices.wsAboveThePage.get_path = function() { 
/// <value type="String" mayBeNull="true">The service url.</value>
return AboveThePage.WebServices.wsAboveThePage._staticInstance.get_path();}
AboveThePage.WebServices.wsAboveThePage.set_timeout = function(value) {
AboveThePage.WebServices.wsAboveThePage._staticInstance.set_timeout(value); }
AboveThePage.WebServices.wsAboveThePage.get_timeout = function() { 
/// <value type="Number">The service timeout.</value>
return AboveThePage.WebServices.wsAboveThePage._staticInstance.get_timeout(); }
AboveThePage.WebServices.wsAboveThePage.set_defaultUserContext = function(value) { 
AboveThePage.WebServices.wsAboveThePage._staticInstance.set_defaultUserContext(value); }
AboveThePage.WebServices.wsAboveThePage.get_defaultUserContext = function() { 
/// <value mayBeNull="true">The service default user context.</value>
return AboveThePage.WebServices.wsAboveThePage._staticInstance.get_defaultUserContext(); }
AboveThePage.WebServices.wsAboveThePage.set_defaultSucceededCallback = function(value) { 
 AboveThePage.WebServices.wsAboveThePage._staticInstance.set_defaultSucceededCallback(value); }
AboveThePage.WebServices.wsAboveThePage.get_defaultSucceededCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default succeeded callback.</value>
return AboveThePage.WebServices.wsAboveThePage._staticInstance.get_defaultSucceededCallback(); }
AboveThePage.WebServices.wsAboveThePage.set_defaultFailedCallback = function(value) { 
AboveThePage.WebServices.wsAboveThePage._staticInstance.set_defaultFailedCallback(value); }
AboveThePage.WebServices.wsAboveThePage.get_defaultFailedCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default failed callback.</value>
return AboveThePage.WebServices.wsAboveThePage._staticInstance.get_defaultFailedCallback(); }
AboveThePage.WebServices.wsAboveThePage.set_enableJsonp = function(value) { AboveThePage.WebServices.wsAboveThePage._staticInstance.set_enableJsonp(value); }
AboveThePage.WebServices.wsAboveThePage.get_enableJsonp = function() { 
/// <value type="Boolean">Specifies whether the service supports JSONP for cross domain calling.</value>
return AboveThePage.WebServices.wsAboveThePage._staticInstance.get_enableJsonp(); }
AboveThePage.WebServices.wsAboveThePage.set_jsonpCallbackParameter = function(value) { AboveThePage.WebServices.wsAboveThePage._staticInstance.set_jsonpCallbackParameter(value); }
AboveThePage.WebServices.wsAboveThePage.get_jsonpCallbackParameter = function() { 
/// <value type="String">Specifies the parameter name that contains the callback function name for a JSONP request.</value>
return AboveThePage.WebServices.wsAboveThePage._staticInstance.get_jsonpCallbackParameter(); }
AboveThePage.WebServices.wsAboveThePage.set_path("/abovethepage/WebServices/wsAboveThePage.asmx");
AboveThePage.WebServices.wsAboveThePage.GetBooks= function(bookVersion,onSuccess,onFailed,userContext) {
/// <param name="bookVersion" 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>
AboveThePage.WebServices.wsAboveThePage._staticInstance.GetBooks(bookVersion,onSuccess,onFailed,userContext); }
AboveThePage.WebServices.wsAboveThePage.GetChapters= function(bookVersion,bookID,onSuccess,onFailed,userContext) {
/// <param name="bookVersion" type="String">System.String</param>
/// <param name="bookID" 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>
AboveThePage.WebServices.wsAboveThePage._staticInstance.GetChapters(bookVersion,bookID,onSuccess,onFailed,userContext); }
AboveThePage.WebServices.wsAboveThePage.GetVerses= function(bookVersion,bookID,chapterNumber,onSuccess,onFailed,userContext) {
/// <param name="bookVersion" type="String">System.String</param>
/// <param name="bookID" type="Number">System.Int32</param>
/// <param name="chapterNumber" 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>
AboveThePage.WebServices.wsAboveThePage._staticInstance.GetVerses(bookVersion,bookID,chapterNumber,onSuccess,onFailed,userContext); }
AboveThePage.WebServices.wsAboveThePage.GetContext= function(bookID,chapterNumber,verse,onSuccess,onFailed,userContext) {
/// <param name="bookID" type="Number">System.Int32</param>
/// <param name="chapterNumber" type="Number">System.Int32</param>
/// <param name="verse" 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>
AboveThePage.WebServices.wsAboveThePage._staticInstance.GetContext(bookID,chapterNumber,verse,onSuccess,onFailed,userContext); }
AboveThePage.WebServices.wsAboveThePage.SaveContext= function(bookID,chapterNumber,verse,userID,text,onSuccess,onFailed,userContext) {
/// <param name="bookID" type="Number">System.Int32</param>
/// <param name="chapterNumber" type="Number">System.Int32</param>
/// <param name="verse" type="Number">System.Int32</param>
/// <param name="userID" type="Number">System.Int32</param>
/// <param name="text" 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>
AboveThePage.WebServices.wsAboveThePage._staticInstance.SaveContext(bookID,chapterNumber,verse,userID,text,onSuccess,onFailed,userContext); }
AboveThePage.WebServices.wsAboveThePage.DeleteContext= function(bookID,chapterNumber,verse,userID,onSuccess,onFailed,userContext) {
/// <param name="bookID" type="Number">System.Int32</param>
/// <param name="chapterNumber" type="Number">System.Int32</param>
/// <param name="verse" type="Number">System.Int32</param>
/// <param name="userID" 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>
AboveThePage.WebServices.wsAboveThePage._staticInstance.DeleteContext(bookID,chapterNumber,verse,userID,onSuccess,onFailed,userContext); }
AboveThePage.WebServices.wsAboveThePage.GetUser= function(userName,password,onSuccess,onFailed,userContext) {
/// <param name="userName" type="String">System.String</param>
/// <param name="password" 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>
AboveThePage.WebServices.wsAboveThePage._staticInstance.GetUser(userName,password,onSuccess,onFailed,userContext); }
AboveThePage.WebServices.wsAboveThePage.GetUserById= function(id,onSuccess,onFailed,userContext) {
/// <param name="id" 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>
AboveThePage.WebServices.wsAboveThePage._staticInstance.GetUserById(id,onSuccess,onFailed,userContext); }
AboveThePage.WebServices.wsAboveThePage.SaveUser= function(userID,userName,password,email,onSuccess,onFailed,userContext) {
/// <param name="userID" type="Number">System.Int32</param>
/// <param name="userName" type="String">System.String</param>
/// <param name="password" type="String">System.String</param>
/// <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>
AboveThePage.WebServices.wsAboveThePage._staticInstance.SaveUser(userID,userName,password,email,onSuccess,onFailed,userContext); }
AboveThePage.WebServices.wsAboveThePage.IsDuplicateUserName= function(userName,onSuccess,onFailed,userContext) {
/// <param name="userName" 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>
AboveThePage.WebServices.wsAboveThePage._staticInstance.IsDuplicateUserName(userName,onSuccess,onFailed,userContext); }
AboveThePage.WebServices.wsAboveThePage.SendUserNameAndPassword= 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>
AboveThePage.WebServices.wsAboveThePage._staticInstance.SendUserNameAndPassword(email,onSuccess,onFailed,userContext); }
AboveThePage.WebServices.wsAboveThePage.IsDuplicateEmail= 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>
AboveThePage.WebServices.wsAboveThePage._staticInstance.IsDuplicateEmail(email,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('AboveThePage.Objects');
if (typeof(AboveThePage.Objects.Book) === 'undefined') {
AboveThePage.Objects.Book=gtc("AboveThePage.Objects.Book");
AboveThePage.Objects.Book.registerClass('AboveThePage.Objects.Book');
}
if (typeof(AboveThePage.Objects.Chapter) === 'undefined') {
AboveThePage.Objects.Chapter=gtc("AboveThePage.Objects.Chapter");
AboveThePage.Objects.Chapter.registerClass('AboveThePage.Objects.Chapter');
}
if (typeof(AboveThePage.Objects.Verse) === 'undefined') {
AboveThePage.Objects.Verse=gtc("AboveThePage.Objects.Verse");
AboveThePage.Objects.Verse.registerClass('AboveThePage.Objects.Verse');
}
if (typeof(AboveThePage.Objects.Context) === 'undefined') {
AboveThePage.Objects.Context=gtc("AboveThePage.Objects.Context");
AboveThePage.Objects.Context.registerClass('AboveThePage.Objects.Context');
}
if (typeof(AboveThePage.Objects.User) === 'undefined') {
AboveThePage.Objects.User=gtc("AboveThePage.Objects.User");
AboveThePage.Objects.User.registerClass('AboveThePage.Objects.User');
}
if (typeof(AboveThePage.Objects.GenericObject) === 'undefined') {
AboveThePage.Objects.GenericObject=gtc("AboveThePage.Objects.GenericObject");
AboveThePage.Objects.GenericObject.registerClass('AboveThePage.Objects.GenericObject');
}

