var WebService=function() {
WebService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
WebService.prototype={
CreateUser:function(username,aspApplicationName,firstName,lastName,phone,credit,locationId,userEmail,userPassword,succeededCallback, failedCallback, userContext) {
return this._invoke(WebService.get_path(), 'CreateUser',false,{username:username,aspApplicationName:aspApplicationName,firstName:firstName,lastName:lastName,phone:phone,credit:credit,locationId:locationId,userEmail:userEmail,userPassword:userPassword},succeededCallback,failedCallback,userContext); },
CheckUserNameAvailability:function(username,succeededCallback, failedCallback, userContext) {
return this._invoke(WebService.get_path(), 'CheckUserNameAvailability',false,{username:username},succeededCallback,failedCallback,userContext); },
GeneralRequest:function(userName,email,request,PageTitle,succeededCallback, failedCallback, userContext) {
return this._invoke(WebService.get_path(), 'GeneralRequest',false,{userName:userName,email:email,request:request,PageTitle:PageTitle},succeededCallback,failedCallback,userContext); },
ContactUs:function(name,email,subject,message,succeededCallback, failedCallback, userContext) {
return this._invoke(WebService.get_path(), 'ContactUs',false,{name:name,email:email,subject:subject,message:message},succeededCallback,failedCallback,userContext); },
SignupNewsLetter:function(name,email,succeededCallback, failedCallback, userContext) {
return this._invoke(WebService.get_path(), 'SignupNewsLetter',false,{name:name,email:email},succeededCallback,failedCallback,userContext); },
ContactSeller:function(adId,adTitle,ContactName,ContactEmail,SellerName,message,succeededCallback, failedCallback, userContext) {
return this._invoke(WebService.get_path(), 'ContactSeller',false,{adId:adId,adTitle:adTitle,ContactName:ContactName,ContactEmail:ContactEmail,SellerName:SellerName,message:message},succeededCallback,failedCallback,userContext); },
RateSeller:function(rating,comment,ratedUserId,evaluatorUserId,succeededCallback, failedCallback, userContext) {
return this._invoke(WebService.get_path(), 'RateSeller',false,{rating:rating,comment:comment,ratedUserId:ratedUserId,evaluatorUserId:evaluatorUserId},succeededCallback,failedCallback,userContext); },
TellFriend:function(adId,adTitle,name,email,friendEmail,FriendName,message,succeededCallback, failedCallback, userContext) {
return this._invoke(WebService.get_path(), 'TellFriend',false,{adId:adId,adTitle:adTitle,name:name,email:email,friendEmail:friendEmail,FriendName:FriendName,message:message},succeededCallback,failedCallback,userContext); },
SendQuestion:function(name,email,message,succeededCallback, failedCallback, userContext) {
return this._invoke(WebService.get_path(), 'SendQuestion',false,{name:name,email:email,message:message},succeededCallback,failedCallback,userContext); },
RetrievePassword:function(email,succeededCallback, failedCallback, userContext) {
return this._invoke(WebService.get_path(), 'RetrievePassword',false,{email:email},succeededCallback,failedCallback,userContext); }}
WebService.registerClass('WebService',Sys.Net.WebServiceProxy);
WebService._staticInstance = new WebService();
WebService.set_path = function(value) { WebService._staticInstance._path = value; }
WebService.get_path = function() { return WebService._staticInstance._path; }
WebService.set_timeout = function(value) { WebService._staticInstance._timeout = value; }
WebService.get_timeout = function() { return WebService._staticInstance._timeout; }
WebService.set_defaultUserContext = function(value) { WebService._staticInstance._userContext = value; }
WebService.get_defaultUserContext = function() { return WebService._staticInstance._userContext; }
WebService.set_defaultSucceededCallback = function(value) { WebService._staticInstance._succeeded = value; }
WebService.get_defaultSucceededCallback = function() { return WebService._staticInstance._succeeded; }
WebService.set_defaultFailedCallback = function(value) { WebService._staticInstance._failed = value; }
WebService.get_defaultFailedCallback = function() { return WebService._staticInstance._failed; }
WebService.set_path("/WebService.asmx");
WebService.CreateUser= function(username,aspApplicationName,firstName,lastName,phone,credit,locationId,userEmail,userPassword,onSuccess,onFailed,userContext) {WebService._staticInstance.CreateUser(username,aspApplicationName,firstName,lastName,phone,credit,locationId,userEmail,userPassword,onSuccess,onFailed,userContext); }
WebService.CheckUserNameAvailability= function(username,onSuccess,onFailed,userContext) {WebService._staticInstance.CheckUserNameAvailability(username,onSuccess,onFailed,userContext); }
WebService.GeneralRequest= function(userName,email,request,PageTitle,onSuccess,onFailed,userContext) {WebService._staticInstance.GeneralRequest(userName,email,request,PageTitle,onSuccess,onFailed,userContext); }
WebService.ContactUs= function(name,email,subject,message,onSuccess,onFailed,userContext) {WebService._staticInstance.ContactUs(name,email,subject,message,onSuccess,onFailed,userContext); }
WebService.SignupNewsLetter= function(name,email,onSuccess,onFailed,userContext) {WebService._staticInstance.SignupNewsLetter(name,email,onSuccess,onFailed,userContext); }
WebService.ContactSeller= function(adId,adTitle,ContactName,ContactEmail,SellerName,message,onSuccess,onFailed,userContext) {WebService._staticInstance.ContactSeller(adId,adTitle,ContactName,ContactEmail,SellerName,message,onSuccess,onFailed,userContext); }
WebService.RateSeller= function(rating,comment,ratedUserId,evaluatorUserId,onSuccess,onFailed,userContext) {WebService._staticInstance.RateSeller(rating,comment,ratedUserId,evaluatorUserId,onSuccess,onFailed,userContext); }
WebService.TellFriend= function(adId,adTitle,name,email,friendEmail,FriendName,message,onSuccess,onFailed,userContext) {WebService._staticInstance.TellFriend(adId,adTitle,name,email,friendEmail,FriendName,message,onSuccess,onFailed,userContext); }
WebService.SendQuestion= function(name,email,message,onSuccess,onFailed,userContext) {WebService._staticInstance.SendQuestion(name,email,message,onSuccess,onFailed,userContext); }
WebService.RetrievePassword= function(email,onSuccess,onFailed,userContext) {WebService._staticInstance.RetrievePassword(email,onSuccess,onFailed,userContext); }
