var LibraryService=function() {
LibraryService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
LibraryService.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return LibraryService._staticInstance.get_path();},
SimpleSearch:function(searchText,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'SimpleSearch',true,{searchText:searchText},succeededCallback,failedCallback,userContext); },
AddComment:function(itemID,commenter,comment,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'AddComment',true,{itemID:itemID,commenter:commenter,comment:comment},succeededCallback,failedCallback,userContext); },
GetItemDetails:function(itemID,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetItemDetails',true,{itemID:itemID},succeededCallback,failedCallback,userContext); },
AdvancedSearch:function(searchText,categoryID,author,publisher,title,startPublicationDate,endPublicationDate,startAddedDate,endAddDate,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'AdvancedSearch',true,{searchText:searchText,categoryID:categoryID,author:author,publisher:publisher,title:title,startPublicationDate:startPublicationDate,endPublicationDate:endPublicationDate,startAddedDate:startAddedDate,endAddDate:endAddDate},succeededCallback,failedCallback,userContext); },
GetCategories:function(succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetCategories',true,{},succeededCallback,failedCallback,userContext); }}
LibraryService.registerClass('LibraryService',Sys.Net.WebServiceProxy);
LibraryService._staticInstance = new LibraryService();
LibraryService.set_path = function(value) { LibraryService._staticInstance.set_path(value); }
LibraryService.get_path = function() { return LibraryService._staticInstance.get_path(); }
LibraryService.set_timeout = function(value) { LibraryService._staticInstance.set_timeout(value); }
LibraryService.get_timeout = function() { return LibraryService._staticInstance.get_timeout(); }
LibraryService.set_defaultUserContext = function(value) { LibraryService._staticInstance.set_defaultUserContext(value); }
LibraryService.get_defaultUserContext = function() { return LibraryService._staticInstance.get_defaultUserContext(); }
LibraryService.set_defaultSucceededCallback = function(value) { LibraryService._staticInstance.set_defaultSucceededCallback(value); }
LibraryService.get_defaultSucceededCallback = function() { return LibraryService._staticInstance.get_defaultSucceededCallback(); }
LibraryService.set_defaultFailedCallback = function(value) { LibraryService._staticInstance.set_defaultFailedCallback(value); }
LibraryService.get_defaultFailedCallback = function() { return LibraryService._staticInstance.get_defaultFailedCallback(); }
LibraryService.set_path("/DesktopModules/ViaLibrary/LibraryService.asmx");
LibraryService.SimpleSearch= function(searchText,onSuccess,onFailed,userContext) {LibraryService._staticInstance.SimpleSearch(searchText,onSuccess,onFailed,userContext); }
LibraryService.AddComment= function(itemID,commenter,comment,onSuccess,onFailed,userContext) {LibraryService._staticInstance.AddComment(itemID,commenter,comment,onSuccess,onFailed,userContext); }
LibraryService.GetItemDetails= function(itemID,onSuccess,onFailed,userContext) {LibraryService._staticInstance.GetItemDetails(itemID,onSuccess,onFailed,userContext); }
LibraryService.AdvancedSearch= function(searchText,categoryID,author,publisher,title,startPublicationDate,endPublicationDate,startAddedDate,endAddDate,onSuccess,onFailed,userContext) {LibraryService._staticInstance.AdvancedSearch(searchText,categoryID,author,publisher,title,startPublicationDate,endPublicationDate,startAddedDate,endAddDate,onSuccess,onFailed,userContext); }
LibraryService.GetCategories= function(onSuccess,onFailed,userContext) {LibraryService._staticInstance.GetCategories(onSuccess,onFailed,userContext); }
