Type.registerNamespace('Xtensive.HelpServer.Web');
Xtensive.HelpServer.Web.TreeNodeProvider=function() {
Xtensive.HelpServer.Web.TreeNodeProvider.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
Xtensive.HelpServer.Web.TreeNodeProvider.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return Xtensive.HelpServer.Web.TreeNodeProvider._staticInstance.get_path();},
Load:function(id,loadedNodesCount,childId,succeededCallback, failedCallback, userContext) {
/// <param name="id" type="String">System.String</param>
/// <param name="loadedNodesCount" type="Number">System.Int32</param>
/// <param name="childId" 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(), 'Load',false,{id:id,loadedNodesCount:loadedNodesCount,childId:childId},succeededCallback,failedCallback,userContext); },
LoadPath:function(ids,loadedNodesCount,childId,succeededCallback, failedCallback, userContext) {
/// <param name="ids" type="Array">System.String[]</param>
/// <param name="loadedNodesCount" type="Array">System.Nullable`1[[System.Int32, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]][]</param>
/// <param name="childId" 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(), 'LoadPath',false,{ids:ids,loadedNodesCount:loadedNodesCount,childId:childId},succeededCallback,failedCallback,userContext); },
GetPath:function(url,succeededCallback, failedCallback, userContext) {
/// <param name="url" 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(), 'GetPath',false,{url:url},succeededCallback,failedCallback,userContext); }}
Xtensive.HelpServer.Web.TreeNodeProvider.registerClass('Xtensive.HelpServer.Web.TreeNodeProvider',Sys.Net.WebServiceProxy);
Xtensive.HelpServer.Web.TreeNodeProvider._staticInstance = new Xtensive.HelpServer.Web.TreeNodeProvider();
Xtensive.HelpServer.Web.TreeNodeProvider.set_path = function(value) {
Xtensive.HelpServer.Web.TreeNodeProvider._staticInstance.set_path(value); }
Xtensive.HelpServer.Web.TreeNodeProvider.get_path = function() { 
/// <value type="String" mayBeNull="true">The service url.</value>
return Xtensive.HelpServer.Web.TreeNodeProvider._staticInstance.get_path();}
Xtensive.HelpServer.Web.TreeNodeProvider.set_timeout = function(value) {
Xtensive.HelpServer.Web.TreeNodeProvider._staticInstance.set_timeout(value); }
Xtensive.HelpServer.Web.TreeNodeProvider.get_timeout = function() { 
/// <value type="Number">The service timeout.</value>
return Xtensive.HelpServer.Web.TreeNodeProvider._staticInstance.get_timeout(); }
Xtensive.HelpServer.Web.TreeNodeProvider.set_defaultUserContext = function(value) { 
Xtensive.HelpServer.Web.TreeNodeProvider._staticInstance.set_defaultUserContext(value); }
Xtensive.HelpServer.Web.TreeNodeProvider.get_defaultUserContext = function() { 
/// <value mayBeNull="true">The service default user context.</value>
return Xtensive.HelpServer.Web.TreeNodeProvider._staticInstance.get_defaultUserContext(); }
Xtensive.HelpServer.Web.TreeNodeProvider.set_defaultSucceededCallback = function(value) { 
 Xtensive.HelpServer.Web.TreeNodeProvider._staticInstance.set_defaultSucceededCallback(value); }
Xtensive.HelpServer.Web.TreeNodeProvider.get_defaultSucceededCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default succeeded callback.</value>
return Xtensive.HelpServer.Web.TreeNodeProvider._staticInstance.get_defaultSucceededCallback(); }
Xtensive.HelpServer.Web.TreeNodeProvider.set_defaultFailedCallback = function(value) { 
Xtensive.HelpServer.Web.TreeNodeProvider._staticInstance.set_defaultFailedCallback(value); }
Xtensive.HelpServer.Web.TreeNodeProvider.get_defaultFailedCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default failed callback.</value>
return Xtensive.HelpServer.Web.TreeNodeProvider._staticInstance.get_defaultFailedCallback(); }
Xtensive.HelpServer.Web.TreeNodeProvider.set_path("/WebServices/TreeNodeProvider.asmx");
Xtensive.HelpServer.Web.TreeNodeProvider.Load= function(id,loadedNodesCount,childId,onSuccess,onFailed,userContext) {
/// <param name="id" type="String">System.String</param>
/// <param name="loadedNodesCount" type="Number">System.Int32</param>
/// <param name="childId" 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>
Xtensive.HelpServer.Web.TreeNodeProvider._staticInstance.Load(id,loadedNodesCount,childId,onSuccess,onFailed,userContext); }
Xtensive.HelpServer.Web.TreeNodeProvider.LoadPath= function(ids,loadedNodesCount,childId,onSuccess,onFailed,userContext) {
/// <param name="ids" type="Array">System.String[]</param>
/// <param name="loadedNodesCount" type="Array">System.Nullable`1[[System.Int32, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]][]</param>
/// <param name="childId" 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>
Xtensive.HelpServer.Web.TreeNodeProvider._staticInstance.LoadPath(ids,loadedNodesCount,childId,onSuccess,onFailed,userContext); }
Xtensive.HelpServer.Web.TreeNodeProvider.GetPath= function(url,onSuccess,onFailed,userContext) {
/// <param name="url" 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>
Xtensive.HelpServer.Web.TreeNodeProvider._staticInstance.GetPath(url,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
if (typeof(Xtensive.HelpServer.Web.TreeNode) === 'undefined') {
Xtensive.HelpServer.Web.TreeNode=gtc("Xtensive.HelpServer.Web.TreeNode");
Xtensive.HelpServer.Web.TreeNode.registerClass('Xtensive.HelpServer.Web.TreeNode');
}
