Type.registerNamespace('Coffeys.CorporateWebService');
Coffeys.CorporateWebService.IPublicService=function() {
Coffeys.CorporateWebService.IPublicService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
Coffeys.CorporateWebService.IPublicService.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return Coffeys.CorporateWebService.IPublicService._staticInstance.get_path();},
GetAreas:function(regionId,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetAreas',false,{regionId:regionId},succeededCallback,failedCallback,userContext); },
GetListingAreas:function(regionId,withListings,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetListingAreas',false,{regionId:regionId,withListings:withListings},succeededCallback,failedCallback,userContext); },
GetArea:function(areaId,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetArea',false,{areaId:areaId},succeededCallback,failedCallback,userContext); },
SaveArea:function(areaId,name,locationId,active,order,latitude,longitude,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'SaveArea',false,{areaId:areaId,name:name,locationId:locationId,active:active,order:order,latitude:latitude,longitude:longitude},succeededCallback,failedCallback,userContext); },
OrderAreas:function(ids,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'OrderAreas',false,{ids:ids},succeededCallback,failedCallback,userContext); },
GetLatestNews:function(startIndex,sortBy,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetLatestNews',false,{startIndex:startIndex,sortBy:sortBy},succeededCallback,failedCallback,userContext); },
SearchNews:function(query,dateFrom,dateTo,startIndex,sortBy,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'SearchNews',false,{query:query,dateFrom:dateFrom,dateTo:dateTo,startIndex:startIndex,sortBy:sortBy},succeededCallback,failedCallback,userContext); },
GetLatestTestimonials:function(startIndex,sortBy,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetLatestTestimonials',false,{startIndex:startIndex,sortBy:sortBy},succeededCallback,failedCallback,userContext); },
SearchTestimonials:function(query,dateFrom,dateTo,startIndex,sortBy,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'SearchTestimonials',false,{query:query,dateFrom:dateFrom,dateTo:dateTo,startIndex:startIndex,sortBy:sortBy},succeededCallback,failedCallback,userContext); }}
Coffeys.CorporateWebService.IPublicService.registerClass('Coffeys.CorporateWebService.IPublicService',Sys.Net.WebServiceProxy);
Coffeys.CorporateWebService.IPublicService._staticInstance = new Coffeys.CorporateWebService.IPublicService();
Coffeys.CorporateWebService.IPublicService.set_path = function(value) { Coffeys.CorporateWebService.IPublicService._staticInstance.set_path(value); }
Coffeys.CorporateWebService.IPublicService.get_path = function() { return Coffeys.CorporateWebService.IPublicService._staticInstance.get_path(); }
Coffeys.CorporateWebService.IPublicService.set_timeout = function(value) { Coffeys.CorporateWebService.IPublicService._staticInstance.set_timeout(value); }
Coffeys.CorporateWebService.IPublicService.get_timeout = function() { return Coffeys.CorporateWebService.IPublicService._staticInstance.get_timeout(); }
Coffeys.CorporateWebService.IPublicService.set_defaultUserContext = function(value) { Coffeys.CorporateWebService.IPublicService._staticInstance.set_defaultUserContext(value); }
Coffeys.CorporateWebService.IPublicService.get_defaultUserContext = function() { return Coffeys.CorporateWebService.IPublicService._staticInstance.get_defaultUserContext(); }
Coffeys.CorporateWebService.IPublicService.set_defaultSucceededCallback = function(value) { Coffeys.CorporateWebService.IPublicService._staticInstance.set_defaultSucceededCallback(value); }
Coffeys.CorporateWebService.IPublicService.get_defaultSucceededCallback = function() { return Coffeys.CorporateWebService.IPublicService._staticInstance.get_defaultSucceededCallback(); }
Coffeys.CorporateWebService.IPublicService.set_defaultFailedCallback = function(value) { Coffeys.CorporateWebService.IPublicService._staticInstance.set_defaultFailedCallback(value); }
Coffeys.CorporateWebService.IPublicService.get_defaultFailedCallback = function() { return Coffeys.CorporateWebService.IPublicService._staticInstance.get_defaultFailedCallback(); }
Coffeys.CorporateWebService.IPublicService.set_path("/services/PublicService.svc");
Coffeys.CorporateWebService.IPublicService.GetAreas= function(regionId,onSuccess,onFailed,userContext) {Coffeys.CorporateWebService.IPublicService._staticInstance.GetAreas(regionId,onSuccess,onFailed,userContext); }
Coffeys.CorporateWebService.IPublicService.GetListingAreas= function(regionId,withListings,onSuccess,onFailed,userContext) {Coffeys.CorporateWebService.IPublicService._staticInstance.GetListingAreas(regionId,withListings,onSuccess,onFailed,userContext); }
Coffeys.CorporateWebService.IPublicService.GetArea= function(areaId,onSuccess,onFailed,userContext) {Coffeys.CorporateWebService.IPublicService._staticInstance.GetArea(areaId,onSuccess,onFailed,userContext); }
Coffeys.CorporateWebService.IPublicService.SaveArea= function(areaId,name,locationId,active,order,latitude,longitude,onSuccess,onFailed,userContext) {Coffeys.CorporateWebService.IPublicService._staticInstance.SaveArea(areaId,name,locationId,active,order,latitude,longitude,onSuccess,onFailed,userContext); }
Coffeys.CorporateWebService.IPublicService.OrderAreas= function(ids,onSuccess,onFailed,userContext) {Coffeys.CorporateWebService.IPublicService._staticInstance.OrderAreas(ids,onSuccess,onFailed,userContext); }
Coffeys.CorporateWebService.IPublicService.GetLatestNews= function(startIndex,sortBy,onSuccess,onFailed,userContext) {Coffeys.CorporateWebService.IPublicService._staticInstance.GetLatestNews(startIndex,sortBy,onSuccess,onFailed,userContext); }
Coffeys.CorporateWebService.IPublicService.SearchNews= function(query,dateFrom,dateTo,startIndex,sortBy,onSuccess,onFailed,userContext) {Coffeys.CorporateWebService.IPublicService._staticInstance.SearchNews(query,dateFrom,dateTo,startIndex,sortBy,onSuccess,onFailed,userContext); }
Coffeys.CorporateWebService.IPublicService.GetLatestTestimonials= function(startIndex,sortBy,onSuccess,onFailed,userContext) {Coffeys.CorporateWebService.IPublicService._staticInstance.GetLatestTestimonials(startIndex,sortBy,onSuccess,onFailed,userContext); }
Coffeys.CorporateWebService.IPublicService.SearchTestimonials= function(query,dateFrom,dateTo,startIndex,sortBy,onSuccess,onFailed,userContext) {Coffeys.CorporateWebService.IPublicService._staticInstance.SearchTestimonials(query,dateFrom,dateTo,startIndex,sortBy,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
if (typeof(Coffeys.CorporateWebService.AreaInfo) === 'undefined') {
Coffeys.CorporateWebService.AreaInfo=gtc("AreaInfo:http://schemas.datacontract.org/2004/07/Coffeys.CorporateWebService");
Coffeys.CorporateWebService.AreaInfo.registerClass('Coffeys.CorporateWebService.AreaInfo');
}
if (typeof(Coffeys.CorporateWebService.FullAreaInfo) === 'undefined') {
Coffeys.CorporateWebService.FullAreaInfo=gtc("FullAreaInfo:http://schemas.datacontract.org/2004/07/Coffeys.CorporateWebService");
Coffeys.CorporateWebService.FullAreaInfo.registerClass('Coffeys.CorporateWebService.FullAreaInfo');
}
Type.registerNamespace('www.w3.org._2001.XMLSchema');
if (typeof(www.w3.org._2001.XMLSchema.int) === 'undefined') {
www.w3.org._2001.XMLSchema.int=gtc("int:http://www.w3.org/2001/XMLSchema");
www.w3.org._2001.XMLSchema.int.registerClass('www.w3.org._2001.XMLSchema.int');
}
if (typeof(www.w3.org._2001.XMLSchema.decimal) === 'undefined') {
www.w3.org._2001.XMLSchema.decimal=gtc("decimal:http://www.w3.org/2001/XMLSchema");
www.w3.org._2001.XMLSchema.decimal.registerClass('www.w3.org._2001.XMLSchema.decimal');
}
if (typeof(Coffeys.CorporateWebService.GetNewsItemsResponse) === 'undefined') {
Coffeys.CorporateWebService.GetNewsItemsResponse=gtc("GetNewsItemsResponse:http://schemas.datacontract.org/2004/07/Coffeys.CorporateWebService");
Coffeys.CorporateWebService.GetNewsItemsResponse.registerClass('Coffeys.CorporateWebService.GetNewsItemsResponse');
}
if (typeof(Coffeys.CorporateWebService.NewsItemInfo) === 'undefined') {
Coffeys.CorporateWebService.NewsItemInfo=gtc("NewsItemInfo:http://schemas.datacontract.org/2004/07/Coffeys.CorporateWebService");
Coffeys.CorporateWebService.NewsItemInfo.registerClass('Coffeys.CorporateWebService.NewsItemInfo');
}
if (typeof(www.w3.org._2001.XMLSchema.dateTime) === 'undefined') {
www.w3.org._2001.XMLSchema.dateTime=gtc("dateTime:http://www.w3.org/2001/XMLSchema");
www.w3.org._2001.XMLSchema.dateTime.registerClass('www.w3.org._2001.XMLSchema.dateTime');
}
if (typeof(Coffeys.CorporateWebService.GetTestimonialsResponse) === 'undefined') {
Coffeys.CorporateWebService.GetTestimonialsResponse=gtc("GetTestimonialsResponse:http://schemas.datacontract.org/2004/07/Coffeys.CorporateWebService");
Coffeys.CorporateWebService.GetTestimonialsResponse.registerClass('Coffeys.CorporateWebService.GetTestimonialsResponse');
}
if (typeof(Coffeys.CorporateWebService.TestimonialInfo) === 'undefined') {
Coffeys.CorporateWebService.TestimonialInfo=gtc("TestimonialInfo:http://schemas.datacontract.org/2004/07/Coffeys.CorporateWebService");
Coffeys.CorporateWebService.TestimonialInfo.registerClass('Coffeys.CorporateWebService.TestimonialInfo');
}

