Type.registerNamespace('HBM2.BuyerPortal.WebServices');
HBM2.BuyerPortal.WebServices.RatingService=function() {
HBM2.BuyerPortal.WebServices.RatingService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
HBM2.BuyerPortal.WebServices.RatingService.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return HBM2.BuyerPortal.WebServices.RatingService._staticInstance.get_path();},
SetRating:function(listingID,rating,succeededCallback, failedCallback, userContext) {
/// <param name="listingID" type="String">System.String</param>
/// <param name="rating" 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(), 'SetRating',false,{listingID:listingID,rating:rating},succeededCallback,failedCallback,userContext); },
AddNoteToNotebook:function(listingID,mlsId,notebookNote,appendToNotes,succeededCallback, failedCallback, userContext) {
/// <param name="listingID" type="String">System.String</param>
/// <param name="mlsId" type="String">System.String</param>
/// <param name="notebookNote" type="String">System.String</param>
/// <param name="appendToNotes" 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(), 'AddNoteToNotebook',false,{listingID:listingID,mlsId:mlsId,notebookNote:notebookNote,appendToNotes:appendToNotes},succeededCallback,failedCallback,userContext); },
GetListingsNotesString:function(mlsListingID,contactType,succeededCallback, failedCallback, userContext) {
/// <param name="mlsListingID" type="String">System.String</param>
/// <param name="contactType" type="HBM2.TypeIdRefByEnum.ContactTypeId">HBM2.TypeIdRefByEnum.ContactTypeId</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(), 'GetListingsNotesString',false,{mlsListingID:mlsListingID,contactType:contactType},succeededCallback,failedCallback,userContext); }}
HBM2.BuyerPortal.WebServices.RatingService.registerClass('HBM2.BuyerPortal.WebServices.RatingService',Sys.Net.WebServiceProxy);
HBM2.BuyerPortal.WebServices.RatingService._staticInstance = new HBM2.BuyerPortal.WebServices.RatingService();
HBM2.BuyerPortal.WebServices.RatingService.set_path = function(value) {
HBM2.BuyerPortal.WebServices.RatingService._staticInstance.set_path(value); }
HBM2.BuyerPortal.WebServices.RatingService.get_path = function() { 
/// <value type="String" mayBeNull="true">The service url.</value>
return HBM2.BuyerPortal.WebServices.RatingService._staticInstance.get_path();}
HBM2.BuyerPortal.WebServices.RatingService.set_timeout = function(value) {
HBM2.BuyerPortal.WebServices.RatingService._staticInstance.set_timeout(value); }
HBM2.BuyerPortal.WebServices.RatingService.get_timeout = function() { 
/// <value type="Number">The service timeout.</value>
return HBM2.BuyerPortal.WebServices.RatingService._staticInstance.get_timeout(); }
HBM2.BuyerPortal.WebServices.RatingService.set_defaultUserContext = function(value) { 
HBM2.BuyerPortal.WebServices.RatingService._staticInstance.set_defaultUserContext(value); }
HBM2.BuyerPortal.WebServices.RatingService.get_defaultUserContext = function() { 
/// <value mayBeNull="true">The service default user context.</value>
return HBM2.BuyerPortal.WebServices.RatingService._staticInstance.get_defaultUserContext(); }
HBM2.BuyerPortal.WebServices.RatingService.set_defaultSucceededCallback = function(value) { 
 HBM2.BuyerPortal.WebServices.RatingService._staticInstance.set_defaultSucceededCallback(value); }
HBM2.BuyerPortal.WebServices.RatingService.get_defaultSucceededCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default succeeded callback.</value>
return HBM2.BuyerPortal.WebServices.RatingService._staticInstance.get_defaultSucceededCallback(); }
HBM2.BuyerPortal.WebServices.RatingService.set_defaultFailedCallback = function(value) { 
HBM2.BuyerPortal.WebServices.RatingService._staticInstance.set_defaultFailedCallback(value); }
HBM2.BuyerPortal.WebServices.RatingService.get_defaultFailedCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default failed callback.</value>
return HBM2.BuyerPortal.WebServices.RatingService._staticInstance.get_defaultFailedCallback(); }
HBM2.BuyerPortal.WebServices.RatingService.set_path("/WebServices/RatingService.asmx");
HBM2.BuyerPortal.WebServices.RatingService.SetRating= function(listingID,rating,onSuccess,onFailed,userContext) {
/// <param name="listingID" type="String">System.String</param>
/// <param name="rating" 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>
HBM2.BuyerPortal.WebServices.RatingService._staticInstance.SetRating(listingID,rating,onSuccess,onFailed,userContext); }
HBM2.BuyerPortal.WebServices.RatingService.AddNoteToNotebook= function(listingID,mlsId,notebookNote,appendToNotes,onSuccess,onFailed,userContext) {
/// <param name="listingID" type="String">System.String</param>
/// <param name="mlsId" type="String">System.String</param>
/// <param name="notebookNote" type="String">System.String</param>
/// <param name="appendToNotes" 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>
HBM2.BuyerPortal.WebServices.RatingService._staticInstance.AddNoteToNotebook(listingID,mlsId,notebookNote,appendToNotes,onSuccess,onFailed,userContext); }
HBM2.BuyerPortal.WebServices.RatingService.GetListingsNotesString= function(mlsListingID,contactType,onSuccess,onFailed,userContext) {
/// <param name="mlsListingID" type="String">System.String</param>
/// <param name="contactType" type="HBM2.TypeIdRefByEnum.ContactTypeId">HBM2.TypeIdRefByEnum.ContactTypeId</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>
HBM2.BuyerPortal.WebServices.RatingService._staticInstance.GetListingsNotesString(mlsListingID,contactType,onSuccess,onFailed,userContext); }
Type.registerNamespace('HBM2.TypeIdRefByEnum');
if (typeof(HBM2.TypeIdRefByEnum.ContactTypeId) === 'undefined') {
HBM2.TypeIdRefByEnum.ContactTypeId = function() { throw Error.invalidOperation(); }
HBM2.TypeIdRefByEnum.ContactTypeId.prototype = {Loan_Officer: 1,Real_Estate_Agent: 2,Strategic_Business_Source: 3,Buyer: 4,Manager: 5,Broker: 6,Project_Consultant: 7,HBM_Employee: 8,Contact: 9,REA_Real_Estate_New: 10,REA_Real_Estate_Exist: 11,REA_REA_Team: 12,SBS_Insurance_Agent: 13,SBS_Builder: 14,SBS_Financial_Planner: 15,SBS_Employer: 16,Buy_Buyer: 17,Buy_Seller: 18,Buy_Investor: 19,Mngr_Manager: 20,Broker_Associate_Broker: 21,Broker_Super_Broker: 22,Broker_Corporate_Broker: 23,PC_Project_Consultant: 24,Con_PastClient: 25,Con_Sphere_Of_Influence: 26,Con_Other: 27,Con_LO_Recruit: 28,SBS_Other: 29}
HBM2.TypeIdRefByEnum.ContactTypeId.registerEnum('HBM2.TypeIdRefByEnum.ContactTypeId', true);
}

