var PropertyService=function() {
PropertyService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
PropertyService.prototype={
HelloWorld:function(succeededCallback, failedCallback, userContext) {
return this._invoke(PropertyService.get_path(), 'HelloWorld',false,{},succeededCallback,failedCallback,userContext); },
GetProperty:function(area,bedrooms,furnishing,propertyType,search,enabled,succeededCallback, failedCallback, userContext) {
return this._invoke(PropertyService.get_path(), 'GetProperty',false,{area:area,bedrooms:bedrooms,furnishing:furnishing,propertyType:propertyType,search:search,enabled:enabled},succeededCallback,failedCallback,userContext); },
GetStarId:function(succeededCallback, failedCallback, userContext) {
return this._invoke(PropertyService.get_path(), 'GetStarId',false,{},succeededCallback,failedCallback,userContext); },
GetPropertyItem:function(pId,star,succeededCallback, failedCallback, userContext) {
return this._invoke(PropertyService.get_path(), 'GetPropertyItem',false,{pId:pId,star:star},succeededCallback,failedCallback,userContext); },
GetDTPropertyItem:function(pId,succeededCallback, failedCallback, userContext) {
return this._invoke(PropertyService.get_path(), 'GetDTPropertyItem',false,{pId:pId},succeededCallback,failedCallback,userContext); },
DeleteImage:function(imageId,succeededCallback, failedCallback, userContext) {
return this._invoke(PropertyService.get_path(), 'DeleteImage',false,{imageId:imageId},succeededCallback,failedCallback,userContext); },
GetPics:function(pId,star,succeededCallback, failedCallback, userContext) {
return this._invoke(PropertyService.get_path(), 'GetPics',false,{pId:pId,star:star},succeededCallback,failedCallback,userContext); },
GetDatabaseValue:function(title,succeededCallback, failedCallback, userContext) {
return this._invoke(PropertyService.get_path(), 'GetDatabaseValue',false,{title:title},succeededCallback,failedCallback,userContext); },
InsertProperty:function(title,summary,area,rooms,furnishings,type,postcode,price,succeededCallback, failedCallback, userContext) {
return this._invoke(PropertyService.get_path(), 'InsertProperty',false,{title:title,summary:summary,area:area,rooms:rooms,furnishings:furnishings,type:type,postcode:postcode,price:price},succeededCallback,failedCallback,userContext); },
ExecuteScalar:function(sql,succeededCallback, failedCallback, userContext) {
return this._invoke(PropertyService.get_path(), 'ExecuteScalar',false,{sql:sql},succeededCallback,failedCallback,userContext); },
ExecuteNonQuery:function(sql,succeededCallback, failedCallback, userContext) {
return this._invoke(PropertyService.get_path(), 'ExecuteNonQuery',false,{sql:sql},succeededCallback,failedCallback,userContext); },
UpdateProperty:function(id,title,summary,area,rooms,furnishings,type,postcode,price,star,enabled,succeededCallback, failedCallback, userContext) {
return this._invoke(PropertyService.get_path(), 'UpdateProperty',false,{id:id,title:title,summary:summary,area:area,rooms:rooms,furnishings:furnishings,type:type,postcode:postcode,price:price,star:star,enabled:enabled},succeededCallback,failedCallback,userContext); },
DoLogin:function(username,password,succeededCallback, failedCallback, userContext) {
return this._invoke(PropertyService.get_path(), 'DoLogin',false,{username:username,password:password},succeededCallback,failedCallback,userContext); }}
PropertyService.registerClass('PropertyService',Sys.Net.WebServiceProxy);
PropertyService._staticInstance = new PropertyService();
PropertyService.set_path = function(value) { 
var e = Function._validateParams(arguments, [{name: 'path', type: String}]); if (e) throw e; PropertyService._staticInstance._path = value; }
PropertyService.get_path = function() { return PropertyService._staticInstance._path; }
PropertyService.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); }
PropertyService._staticInstance._timeout = value; }
PropertyService.get_timeout = function() { 
return PropertyService._staticInstance._timeout; }
PropertyService.set_defaultUserContext = function(value) { 
PropertyService._staticInstance._userContext = value; }
PropertyService.get_defaultUserContext = function() { 
return PropertyService._staticInstance._userContext; }
PropertyService.set_defaultSucceededCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultSucceededCallback', type: Function}]); if (e) throw e; PropertyService._staticInstance._succeeded = value; }
PropertyService.get_defaultSucceededCallback = function() { 
return PropertyService._staticInstance._succeeded; }
PropertyService.set_defaultFailedCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultFailedCallback', type: Function}]); if (e) throw e; PropertyService._staticInstance._failed = value; }
PropertyService.get_defaultFailedCallback = function() { 
return PropertyService._staticInstance._failed; }
PropertyService.set_path("/WebServices/PropertyService.asmx");
PropertyService.HelloWorld= function(onSuccess,onFailed,userContext) {PropertyService._staticInstance.HelloWorld(onSuccess,onFailed,userContext); }
PropertyService.GetProperty= function(area,bedrooms,furnishing,propertyType,search,enabled,onSuccess,onFailed,userContext) {PropertyService._staticInstance.GetProperty(area,bedrooms,furnishing,propertyType,search,enabled,onSuccess,onFailed,userContext); }
PropertyService.GetStarId= function(onSuccess,onFailed,userContext) {PropertyService._staticInstance.GetStarId(onSuccess,onFailed,userContext); }
PropertyService.GetPropertyItem= function(pId,star,onSuccess,onFailed,userContext) {PropertyService._staticInstance.GetPropertyItem(pId,star,onSuccess,onFailed,userContext); }
PropertyService.GetDTPropertyItem= function(pId,onSuccess,onFailed,userContext) {PropertyService._staticInstance.GetDTPropertyItem(pId,onSuccess,onFailed,userContext); }
PropertyService.DeleteImage= function(imageId,onSuccess,onFailed,userContext) {PropertyService._staticInstance.DeleteImage(imageId,onSuccess,onFailed,userContext); }
PropertyService.GetPics= function(pId,star,onSuccess,onFailed,userContext) {PropertyService._staticInstance.GetPics(pId,star,onSuccess,onFailed,userContext); }
PropertyService.GetDatabaseValue= function(title,onSuccess,onFailed,userContext) {PropertyService._staticInstance.GetDatabaseValue(title,onSuccess,onFailed,userContext); }
PropertyService.InsertProperty= function(title,summary,area,rooms,furnishings,type,postcode,price,onSuccess,onFailed,userContext) {PropertyService._staticInstance.InsertProperty(title,summary,area,rooms,furnishings,type,postcode,price,onSuccess,onFailed,userContext); }
PropertyService.ExecuteScalar= function(sql,onSuccess,onFailed,userContext) {PropertyService._staticInstance.ExecuteScalar(sql,onSuccess,onFailed,userContext); }
PropertyService.ExecuteNonQuery= function(sql,onSuccess,onFailed,userContext) {PropertyService._staticInstance.ExecuteNonQuery(sql,onSuccess,onFailed,userContext); }
PropertyService.UpdateProperty= function(id,title,summary,area,rooms,furnishings,type,postcode,price,star,enabled,onSuccess,onFailed,userContext) {PropertyService._staticInstance.UpdateProperty(id,title,summary,area,rooms,furnishings,type,postcode,price,star,enabled,onSuccess,onFailed,userContext); }
PropertyService.DoLogin= function(username,password,onSuccess,onFailed,userContext) {PropertyService._staticInstance.DoLogin(username,password,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
if (typeof(Property) === 'undefined') {
var Property=gtc("Property");
Property.registerClass('Property');
}
if (typeof(Image) === 'undefined') {
var Image=gtc("Image");
Image.registerClass('Image');
}
