Type.registerNamespace('Services.Pyramid');
Services.Pyramid.Data=function() {
Services.Pyramid.Data.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
Services.Pyramid.Data.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return Services.Pyramid.Data._staticInstance.get_path();},
Search:function(RowIndex,MaxRecordsToReturn,Transaction_Type,SqFtMin,SqFtMax,City,County,AgentName,Office,PropertyAddress,State,Zip,CapRateHigh,CapRateLow,QueryMode,PropertyType,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'Search',false,{RowIndex:RowIndex,MaxRecordsToReturn:MaxRecordsToReturn,Transaction_Type:Transaction_Type,SqFtMin:SqFtMin,SqFtMax:SqFtMax,City:City,County:County,AgentName:AgentName,Office:Office,PropertyAddress:PropertyAddress,State:State,Zip:Zip,CapRateHigh:CapRateHigh,CapRateLow:CapRateLow,QueryMode:QueryMode,PropertyType:PropertyType},succeededCallback,failedCallback,userContext); },
Count:function(QueryMode,Transaction_Type,SqFtMin,SqFtMax,City,County,AgentName,Office,PropertyAddress,State,Zip,CapRateHigh,CapRateLow,PropertyType,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'Count',false,{QueryMode:QueryMode,Transaction_Type:Transaction_Type,SqFtMin:SqFtMin,SqFtMax:SqFtMax,City:City,County:County,AgentName:AgentName,Office:Office,PropertyAddress:PropertyAddress,State:State,Zip:Zip,CapRateHigh:CapRateHigh,CapRateLow:CapRateLow,PropertyType:PropertyType},succeededCallback,failedCallback,userContext); },
StatsCount:function(length,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'StatsCount',false,{length:length},succeededCallback,failedCallback,userContext); },
StatsList:function(length,rows,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'StatsList',false,{length:length,rows:rows},succeededCallback,failedCallback,userContext); }}
Services.Pyramid.Data.registerClass('Services.Pyramid.Data',Sys.Net.WebServiceProxy);
Services.Pyramid.Data._staticInstance = new Services.Pyramid.Data();
Services.Pyramid.Data.set_path = function(value) { Services.Pyramid.Data._staticInstance.set_path(value); }
Services.Pyramid.Data.get_path = function() { return Services.Pyramid.Data._staticInstance.get_path(); }
Services.Pyramid.Data.set_timeout = function(value) { Services.Pyramid.Data._staticInstance.set_timeout(value); }
Services.Pyramid.Data.get_timeout = function() { return Services.Pyramid.Data._staticInstance.get_timeout(); }
Services.Pyramid.Data.set_defaultUserContext = function(value) { Services.Pyramid.Data._staticInstance.set_defaultUserContext(value); }
Services.Pyramid.Data.get_defaultUserContext = function() { return Services.Pyramid.Data._staticInstance.get_defaultUserContext(); }
Services.Pyramid.Data.set_defaultSucceededCallback = function(value) { Services.Pyramid.Data._staticInstance.set_defaultSucceededCallback(value); }
Services.Pyramid.Data.get_defaultSucceededCallback = function() { return Services.Pyramid.Data._staticInstance.get_defaultSucceededCallback(); }
Services.Pyramid.Data.set_defaultFailedCallback = function(value) { Services.Pyramid.Data._staticInstance.set_defaultFailedCallback(value); }
Services.Pyramid.Data.get_defaultFailedCallback = function() { return Services.Pyramid.Data._staticInstance.get_defaultFailedCallback(); }
Services.Pyramid.Data.set_path("/PyramidDataService.asmx");
Services.Pyramid.Data.Search= function(RowIndex,MaxRecordsToReturn,Transaction_Type,SqFtMin,SqFtMax,City,County,AgentName,Office,PropertyAddress,State,Zip,CapRateHigh,CapRateLow,QueryMode,PropertyType,onSuccess,onFailed,userContext) {Services.Pyramid.Data._staticInstance.Search(RowIndex,MaxRecordsToReturn,Transaction_Type,SqFtMin,SqFtMax,City,County,AgentName,Office,PropertyAddress,State,Zip,CapRateHigh,CapRateLow,QueryMode,PropertyType,onSuccess,onFailed,userContext); }
Services.Pyramid.Data.Count= function(QueryMode,Transaction_Type,SqFtMin,SqFtMax,City,County,AgentName,Office,PropertyAddress,State,Zip,CapRateHigh,CapRateLow,PropertyType,onSuccess,onFailed,userContext) {Services.Pyramid.Data._staticInstance.Count(QueryMode,Transaction_Type,SqFtMin,SqFtMax,City,County,AgentName,Office,PropertyAddress,State,Zip,CapRateHigh,CapRateLow,PropertyType,onSuccess,onFailed,userContext); }
Services.Pyramid.Data.StatsCount= function(length,onSuccess,onFailed,userContext) {Services.Pyramid.Data._staticInstance.StatsCount(length,onSuccess,onFailed,userContext); }
Services.Pyramid.Data.StatsList= function(length,rows,onSuccess,onFailed,userContext) {Services.Pyramid.Data._staticInstance.StatsList(length,rows,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
if (typeof(Services.Pyramid.Listing) === 'undefined') {
Services.Pyramid.Listing=gtc("Services.Pyramid.Listing");
Services.Pyramid.Listing.registerClass('Services.Pyramid.Listing');
}
Type.registerNamespace('OliverHine.DNN.Modules.Pyramid.Business');
if (typeof(OliverHine.DNN.Modules.Pyramid.Business.Listings_State) === 'undefined') {
OliverHine.DNN.Modules.Pyramid.Business.Listings_State=gtc("OliverHine.DNN.Modules.Pyramid.Business.Listings_State");
OliverHine.DNN.Modules.Pyramid.Business.Listings_State.registerClass('OliverHine.DNN.Modules.Pyramid.Business.Listings_State');
}
if (typeof(Services.Pyramid.ListingStats) === 'undefined') {
Services.Pyramid.ListingStats=gtc("Services.Pyramid.ListingStats");
Services.Pyramid.ListingStats.registerClass('Services.Pyramid.ListingStats');
}
