var BLLService=function() {
BLLService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
BLLService.prototype={
GetTranslationItems:function(succeededCallback, failedCallback, userContext) {
return this._invoke(BLLService.get_path(), 'GetTranslationItems',false,{},succeededCallback,failedCallback,userContext); },
GetLibraries:function(node,controlname,succeededCallback, failedCallback, userContext) {
return this._invoke(BLLService.get_path(), 'GetLibraries',false,{node:node,controlname:controlname},succeededCallback,failedCallback,userContext); },
GetFinderTranslations:function(descriptionsYN,controlname,succeededCallback, failedCallback, userContext) {
return this._invoke(BLLService.get_path(), 'GetFinderTranslations',false,{descriptionsYN:descriptionsYN,controlname:controlname},succeededCallback,failedCallback,userContext); },
GetFinderApocryphalTranslations:function(descriptionsYN,controlname,succeededCallback, failedCallback, userContext) {
return this._invoke(BLLService.get_path(), 'GetFinderApocryphalTranslations',false,{descriptionsYN:descriptionsYN,controlname:controlname},succeededCallback,failedCallback,userContext); },
GetFinderBooks:function(translationcode,testament,controlname,succeededCallback, failedCallback, userContext) {
return this._invoke(BLLService.get_path(), 'GetFinderBooks',false,{translationcode:translationcode,testament:testament,controlname:controlname},succeededCallback,failedCallback,userContext); },
AddUserNote:function(NoteTitle,NoteText,TranslationCode,BookCode,ChapterId,VerseId,Tags,ReferenceString,ReferenceType,ReferenceId,succeededCallback, failedCallback, userContext) {
return this._invoke(BLLService.get_path(), 'AddUserNote',false,{NoteTitle:NoteTitle,NoteText:NoteText,TranslationCode:TranslationCode,BookCode:BookCode,ChapterId:ChapterId,VerseId:VerseId,Tags:Tags,ReferenceString:ReferenceString,ReferenceType:ReferenceType,ReferenceId:ReferenceId},succeededCallback,failedCallback,userContext); },
DeleteUserNote:function(NoteId,NoteText,RowVersion,succeededCallback, failedCallback, userContext) {
return this._invoke(BLLService.get_path(), 'DeleteUserNote',false,{NoteId:NoteId,NoteText:NoteText,RowVersion:RowVersion},succeededCallback,failedCallback,userContext); },
UpdateUserNote:function(NoteId,NoteTitle,NoteText,TranslationCode,BookCode,ChapterId,VerseId,Tags,ReferenceString,ReferenceType,ReferenceId,RowVersion,succeededCallback, failedCallback, userContext) {
return this._invoke(BLLService.get_path(), 'UpdateUserNote',false,{NoteId:NoteId,NoteTitle:NoteTitle,NoteText:NoteText,TranslationCode:TranslationCode,BookCode:BookCode,ChapterId:ChapterId,VerseId:VerseId,Tags:Tags,ReferenceString:ReferenceString,ReferenceType:ReferenceType,ReferenceId:ReferenceId,RowVersion:RowVersion},succeededCallback,failedCallback,userContext); },
AddUserFormat:function(TranslationCode,BookCode,ChapterId,VerseId,VerseText,succeededCallback, failedCallback, userContext) {
return this._invoke(BLLService.get_path(), 'AddUserFormat',false,{TranslationCode:TranslationCode,BookCode:BookCode,ChapterId:ChapterId,VerseId:VerseId,VerseText:VerseText},succeededCallback,failedCallback,userContext); },
DeleteUserFormat:function(TranslationCode,BookCode,ChapterId,VerseId,LastVerseId,succeededCallback, failedCallback, userContext) {
return this._invoke(BLLService.get_path(), 'DeleteUserFormat',false,{TranslationCode:TranslationCode,BookCode:BookCode,ChapterId:ChapterId,VerseId:VerseId,LastVerseId:LastVerseId},succeededCallback,failedCallback,userContext); },
UpdateUserFormat:function(TranslationCode,BookCode,ChapterId,VerseId,LastVerseidDeleteOnly,VerseText,succeededCallback, failedCallback, userContext) {
return this._invoke(BLLService.get_path(), 'UpdateUserFormat',false,{TranslationCode:TranslationCode,BookCode:BookCode,ChapterId:ChapterId,VerseId:VerseId,LastVerseidDeleteOnly:LastVerseidDeleteOnly,VerseText:VerseText},succeededCallback,failedCallback,userContext); },
AddUserFlag:function(translationCode,bookCode,chapter,verseStart,verseEnd,succeededCallback, failedCallback, userContext) {
return this._invoke(BLLService.get_path(), 'AddUserFlag',false,{translationCode:translationCode,bookCode:bookCode,chapter:chapter,verseStart:verseStart,verseEnd:verseEnd},succeededCallback,failedCallback,userContext); },
RemoveUserFlag:function(translationCode,bookCode,chapter,verseStart,succeededCallback, failedCallback, userContext) {
return this._invoke(BLLService.get_path(), 'RemoveUserFlag',false,{translationCode:translationCode,bookCode:bookCode,chapter:chapter,verseStart:verseStart},succeededCallback,failedCallback,userContext); }}
BLLService.registerClass('BLLService',Sys.Net.WebServiceProxy);
BLLService._staticInstance = new BLLService();
BLLService.set_path = function(value) { 
var e = Function._validateParams(arguments, [{name: 'path', type: String}]); if (e) throw e; BLLService._staticInstance._path = value; }
BLLService.get_path = function() { return BLLService._staticInstance._path; }
BLLService.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); }
BLLService._staticInstance._timeout = value; }
BLLService.get_timeout = function() { 
return BLLService._staticInstance._timeout; }
BLLService.set_defaultUserContext = function(value) { 
BLLService._staticInstance._userContext = value; }
BLLService.get_defaultUserContext = function() { 
return BLLService._staticInstance._userContext; }
BLLService.set_defaultSucceededCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultSucceededCallback', type: Function}]); if (e) throw e; BLLService._staticInstance._succeeded = value; }
BLLService.get_defaultSucceededCallback = function() { 
return BLLService._staticInstance._succeeded; }
BLLService.set_defaultFailedCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultFailedCallback', type: Function}]); if (e) throw e; BLLService._staticInstance._failed = value; }
BLLService.get_defaultFailedCallback = function() { 
return BLLService._staticInstance._failed; }
BLLService.set_path("/SiteInfo/WebServices/BLLService.asmx");
BLLService.GetTranslationItems= function(onSuccess,onFailed,userContext) {BLLService._staticInstance.GetTranslationItems(onSuccess,onFailed,userContext); }
BLLService.GetLibraries= function(node,controlname,onSuccess,onFailed,userContext) {BLLService._staticInstance.GetLibraries(node,controlname,onSuccess,onFailed,userContext); }
BLLService.GetFinderTranslations= function(descriptionsYN,controlname,onSuccess,onFailed,userContext) {BLLService._staticInstance.GetFinderTranslations(descriptionsYN,controlname,onSuccess,onFailed,userContext); }
BLLService.GetFinderApocryphalTranslations= function(descriptionsYN,controlname,onSuccess,onFailed,userContext) {BLLService._staticInstance.GetFinderApocryphalTranslations(descriptionsYN,controlname,onSuccess,onFailed,userContext); }
BLLService.GetFinderBooks= function(translationcode,testament,controlname,onSuccess,onFailed,userContext) {BLLService._staticInstance.GetFinderBooks(translationcode,testament,controlname,onSuccess,onFailed,userContext); }
BLLService.AddUserNote= function(NoteTitle,NoteText,TranslationCode,BookCode,ChapterId,VerseId,Tags,ReferenceString,ReferenceType,ReferenceId,onSuccess,onFailed,userContext) {BLLService._staticInstance.AddUserNote(NoteTitle,NoteText,TranslationCode,BookCode,ChapterId,VerseId,Tags,ReferenceString,ReferenceType,ReferenceId,onSuccess,onFailed,userContext); }
BLLService.DeleteUserNote= function(NoteId,NoteText,RowVersion,onSuccess,onFailed,userContext) {BLLService._staticInstance.DeleteUserNote(NoteId,NoteText,RowVersion,onSuccess,onFailed,userContext); }
BLLService.UpdateUserNote= function(NoteId,NoteTitle,NoteText,TranslationCode,BookCode,ChapterId,VerseId,Tags,ReferenceString,ReferenceType,ReferenceId,RowVersion,onSuccess,onFailed,userContext) {BLLService._staticInstance.UpdateUserNote(NoteId,NoteTitle,NoteText,TranslationCode,BookCode,ChapterId,VerseId,Tags,ReferenceString,ReferenceType,ReferenceId,RowVersion,onSuccess,onFailed,userContext); }
BLLService.AddUserFormat= function(TranslationCode,BookCode,ChapterId,VerseId,VerseText,onSuccess,onFailed,userContext) {BLLService._staticInstance.AddUserFormat(TranslationCode,BookCode,ChapterId,VerseId,VerseText,onSuccess,onFailed,userContext); }
BLLService.DeleteUserFormat= function(TranslationCode,BookCode,ChapterId,VerseId,LastVerseId,onSuccess,onFailed,userContext) {BLLService._staticInstance.DeleteUserFormat(TranslationCode,BookCode,ChapterId,VerseId,LastVerseId,onSuccess,onFailed,userContext); }
BLLService.UpdateUserFormat= function(TranslationCode,BookCode,ChapterId,VerseId,LastVerseidDeleteOnly,VerseText,onSuccess,onFailed,userContext) {BLLService._staticInstance.UpdateUserFormat(TranslationCode,BookCode,ChapterId,VerseId,LastVerseidDeleteOnly,VerseText,onSuccess,onFailed,userContext); }
BLLService.AddUserFlag= function(translationCode,bookCode,chapter,verseStart,verseEnd,onSuccess,onFailed,userContext) {BLLService._staticInstance.AddUserFlag(translationCode,bookCode,chapter,verseStart,verseEnd,onSuccess,onFailed,userContext); }
BLLService.RemoveUserFlag= function(translationCode,bookCode,chapter,verseStart,onSuccess,onFailed,userContext) {BLLService._staticInstance.RemoveUserFlag(translationCode,bookCode,chapter,verseStart,onSuccess,onFailed,userContext); }
