Type.registerNamespace('MightyPlace.WebServices');
MightyPlace.WebServices.CommonService=function() {
MightyPlace.WebServices.CommonService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
MightyPlace.WebServices.CommonService.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return MightyPlace.WebServices.CommonService._staticInstance.get_path();},
GetCountries:function(succeededCallback, failedCallback, userContext) {
/// <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(), 'GetCountries',false,{},succeededCallback,failedCallback,userContext); },
GetProfileDropDowns:function(succeededCallback, failedCallback, userContext) {
/// <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(), 'GetProfileDropDowns',false,{},succeededCallback,failedCallback,userContext); },
GetCaptcha:function(succeededCallback, failedCallback, userContext) {
/// <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(), 'GetCaptcha',false,{},succeededCallback,failedCallback,userContext); },
SetNewCaptcha:function(succeededCallback, failedCallback, userContext) {
/// <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(), 'SetNewCaptcha',false,{},succeededCallback,failedCallback,userContext); },
GetIP:function(succeededCallback, failedCallback, userContext) {
/// <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(), 'GetIP',false,{},succeededCallback,failedCallback,userContext); },
SendEmail:function(emailtype,fromemail,fromname,toemail,subject,body,succeededCallback, failedCallback, userContext) {
/// <param name="emailtype" type="Number">System.Byte</param>
/// <param name="fromemail" type="String">System.String</param>
/// <param name="fromname" type="String">System.String</param>
/// <param name="toemail" type="String">System.String</param>
/// <param name="subject" type="String">System.String</param>
/// <param name="body" 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(), 'SendEmail',false,{emailtype:emailtype,fromemail:fromemail,fromname:fromname,toemail:toemail,subject:subject,body:body},succeededCallback,failedCallback,userContext); },
GetExternalMessage:function(messagevars,succeededCallback, failedCallback, userContext) {
/// <param name="messagevars" type="Array">System.Object[]</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(), 'GetExternalMessage',false,{messagevars:messagevars},succeededCallback,failedCallback,userContext); },
SearchMembers:function(Criteria,succeededCallback, failedCallback, userContext) {
/// <param name="Criteria" type="Array">System.Object[]</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(), 'SearchMembers',false,{Criteria:Criteria},succeededCallback,failedCallback,userContext); },
GetMasterFeeds:function(zipcode,succeededCallback, failedCallback, userContext) {
/// <param name="zipcode" 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(), 'GetMasterFeeds',false,{zipcode:zipcode},succeededCallback,failedCallback,userContext); },
SaveReferralUser_ID:function(User_ID,succeededCallback, failedCallback, userContext) {
/// <param name="User_ID" 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(), 'SaveReferralUser_ID',false,{User_ID:User_ID},succeededCallback,failedCallback,userContext); },
GetReferralUser_ID:function(succeededCallback, failedCallback, userContext) {
/// <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(), 'GetReferralUser_ID',false,{},succeededCallback,failedCallback,userContext); },
GetNewExpDate:function(date,term,newvalue,succeededCallback, failedCallback, userContext) {
/// <param name="date" type="String">System.String</param>
/// <param name="term" type="String">System.String</param>
/// <param name="newvalue" 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(), 'GetNewExpDate',false,{date:date,term:term,newvalue:newvalue},succeededCallback,failedCallback,userContext); },
CheckValidCreditCard:function(CCNumber,succeededCallback, failedCallback, userContext) {
/// <param name="CCNumber" 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(), 'CheckValidCreditCard',false,{CCNumber:CCNumber},succeededCallback,failedCallback,userContext); },
IsValidImageFile:function(filename,succeededCallback, failedCallback, userContext) {
/// <param name="filename" 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(), 'IsValidImageFile',false,{filename:filename},succeededCallback,failedCallback,userContext); },
GetRandomAds:function(Quantity,succeededCallback, failedCallback, userContext) {
/// <param name="Quantity" type="Number">System.Byte</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(), 'GetRandomAds',false,{Quantity:Quantity},succeededCallback,failedCallback,userContext); },
SaveMerchantClick:function(User_ID,Merchant_ID,succeededCallback, failedCallback, userContext) {
/// <param name="User_ID" type="String">System.String</param>
/// <param name="Merchant_ID" 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(), 'SaveMerchantClick',false,{User_ID:User_ID,Merchant_ID:Merchant_ID},succeededCallback,failedCallback,userContext); },
SaveNewAdClick:function(User_ID,Ad_ID,succeededCallback, failedCallback, userContext) {
/// <param name="User_ID" type="Number">System.Int64</param>
/// <param name="Ad_ID" type="Number">System.Int64</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(), 'SaveNewAdClick',false,{User_ID:User_ID,Ad_ID:Ad_ID},succeededCallback,failedCallback,userContext); }}
MightyPlace.WebServices.CommonService.registerClass('MightyPlace.WebServices.CommonService',Sys.Net.WebServiceProxy);
MightyPlace.WebServices.CommonService._staticInstance = new MightyPlace.WebServices.CommonService();
MightyPlace.WebServices.CommonService.set_path = function(value) {
MightyPlace.WebServices.CommonService._staticInstance.set_path(value); }
MightyPlace.WebServices.CommonService.get_path = function() { 
/// <value type="String" mayBeNull="true">The service url.</value>
return MightyPlace.WebServices.CommonService._staticInstance.get_path();}
MightyPlace.WebServices.CommonService.set_timeout = function(value) {
MightyPlace.WebServices.CommonService._staticInstance.set_timeout(value); }
MightyPlace.WebServices.CommonService.get_timeout = function() { 
/// <value type="Number">The service timeout.</value>
return MightyPlace.WebServices.CommonService._staticInstance.get_timeout(); }
MightyPlace.WebServices.CommonService.set_defaultUserContext = function(value) { 
MightyPlace.WebServices.CommonService._staticInstance.set_defaultUserContext(value); }
MightyPlace.WebServices.CommonService.get_defaultUserContext = function() { 
/// <value mayBeNull="true">The service default user context.</value>
return MightyPlace.WebServices.CommonService._staticInstance.get_defaultUserContext(); }
MightyPlace.WebServices.CommonService.set_defaultSucceededCallback = function(value) { 
 MightyPlace.WebServices.CommonService._staticInstance.set_defaultSucceededCallback(value); }
MightyPlace.WebServices.CommonService.get_defaultSucceededCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default succeeded callback.</value>
return MightyPlace.WebServices.CommonService._staticInstance.get_defaultSucceededCallback(); }
MightyPlace.WebServices.CommonService.set_defaultFailedCallback = function(value) { 
MightyPlace.WebServices.CommonService._staticInstance.set_defaultFailedCallback(value); }
MightyPlace.WebServices.CommonService.get_defaultFailedCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default failed callback.</value>
return MightyPlace.WebServices.CommonService._staticInstance.get_defaultFailedCallback(); }
MightyPlace.WebServices.CommonService.set_enableJsonp = function(value) { MightyPlace.WebServices.CommonService._staticInstance.set_enableJsonp(value); }
MightyPlace.WebServices.CommonService.get_enableJsonp = function() { 
/// <value type="Boolean">Specifies whether the service supports JSONP for cross domain calling.</value>
return MightyPlace.WebServices.CommonService._staticInstance.get_enableJsonp(); }
MightyPlace.WebServices.CommonService.set_jsonpCallbackParameter = function(value) { MightyPlace.WebServices.CommonService._staticInstance.set_jsonpCallbackParameter(value); }
MightyPlace.WebServices.CommonService.get_jsonpCallbackParameter = function() { 
/// <value type="String">Specifies the parameter name that contains the callback function name for a JSONP request.</value>
return MightyPlace.WebServices.CommonService._staticInstance.get_jsonpCallbackParameter(); }
MightyPlace.WebServices.CommonService.set_path("/WebServices/CommonService.asmx");
MightyPlace.WebServices.CommonService.GetCountries= function(onSuccess,onFailed,userContext) {
/// <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>
MightyPlace.WebServices.CommonService._staticInstance.GetCountries(onSuccess,onFailed,userContext); }
MightyPlace.WebServices.CommonService.GetProfileDropDowns= function(onSuccess,onFailed,userContext) {
/// <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>
MightyPlace.WebServices.CommonService._staticInstance.GetProfileDropDowns(onSuccess,onFailed,userContext); }
MightyPlace.WebServices.CommonService.GetCaptcha= function(onSuccess,onFailed,userContext) {
/// <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>
MightyPlace.WebServices.CommonService._staticInstance.GetCaptcha(onSuccess,onFailed,userContext); }
MightyPlace.WebServices.CommonService.SetNewCaptcha= function(onSuccess,onFailed,userContext) {
/// <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>
MightyPlace.WebServices.CommonService._staticInstance.SetNewCaptcha(onSuccess,onFailed,userContext); }
MightyPlace.WebServices.CommonService.GetIP= function(onSuccess,onFailed,userContext) {
/// <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>
MightyPlace.WebServices.CommonService._staticInstance.GetIP(onSuccess,onFailed,userContext); }
MightyPlace.WebServices.CommonService.SendEmail= function(emailtype,fromemail,fromname,toemail,subject,body,onSuccess,onFailed,userContext) {
/// <param name="emailtype" type="Number">System.Byte</param>
/// <param name="fromemail" type="String">System.String</param>
/// <param name="fromname" type="String">System.String</param>
/// <param name="toemail" type="String">System.String</param>
/// <param name="subject" type="String">System.String</param>
/// <param name="body" 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>
MightyPlace.WebServices.CommonService._staticInstance.SendEmail(emailtype,fromemail,fromname,toemail,subject,body,onSuccess,onFailed,userContext); }
MightyPlace.WebServices.CommonService.GetExternalMessage= function(messagevars,onSuccess,onFailed,userContext) {
/// <param name="messagevars" type="Array">System.Object[]</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>
MightyPlace.WebServices.CommonService._staticInstance.GetExternalMessage(messagevars,onSuccess,onFailed,userContext); }
MightyPlace.WebServices.CommonService.SearchMembers= function(Criteria,onSuccess,onFailed,userContext) {
/// <param name="Criteria" type="Array">System.Object[]</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>
MightyPlace.WebServices.CommonService._staticInstance.SearchMembers(Criteria,onSuccess,onFailed,userContext); }
MightyPlace.WebServices.CommonService.GetMasterFeeds= function(zipcode,onSuccess,onFailed,userContext) {
/// <param name="zipcode" 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>
MightyPlace.WebServices.CommonService._staticInstance.GetMasterFeeds(zipcode,onSuccess,onFailed,userContext); }
MightyPlace.WebServices.CommonService.SaveReferralUser_ID= function(User_ID,onSuccess,onFailed,userContext) {
/// <param name="User_ID" 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>
MightyPlace.WebServices.CommonService._staticInstance.SaveReferralUser_ID(User_ID,onSuccess,onFailed,userContext); }
MightyPlace.WebServices.CommonService.GetReferralUser_ID= function(onSuccess,onFailed,userContext) {
/// <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>
MightyPlace.WebServices.CommonService._staticInstance.GetReferralUser_ID(onSuccess,onFailed,userContext); }
MightyPlace.WebServices.CommonService.GetNewExpDate= function(date,term,newvalue,onSuccess,onFailed,userContext) {
/// <param name="date" type="String">System.String</param>
/// <param name="term" type="String">System.String</param>
/// <param name="newvalue" 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>
MightyPlace.WebServices.CommonService._staticInstance.GetNewExpDate(date,term,newvalue,onSuccess,onFailed,userContext); }
MightyPlace.WebServices.CommonService.CheckValidCreditCard= function(CCNumber,onSuccess,onFailed,userContext) {
/// <param name="CCNumber" 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>
MightyPlace.WebServices.CommonService._staticInstance.CheckValidCreditCard(CCNumber,onSuccess,onFailed,userContext); }
MightyPlace.WebServices.CommonService.IsValidImageFile= function(filename,onSuccess,onFailed,userContext) {
/// <param name="filename" 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>
MightyPlace.WebServices.CommonService._staticInstance.IsValidImageFile(filename,onSuccess,onFailed,userContext); }
MightyPlace.WebServices.CommonService.GetRandomAds= function(Quantity,onSuccess,onFailed,userContext) {
/// <param name="Quantity" type="Number">System.Byte</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>
MightyPlace.WebServices.CommonService._staticInstance.GetRandomAds(Quantity,onSuccess,onFailed,userContext); }
MightyPlace.WebServices.CommonService.SaveMerchantClick= function(User_ID,Merchant_ID,onSuccess,onFailed,userContext) {
/// <param name="User_ID" type="String">System.String</param>
/// <param name="Merchant_ID" 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>
MightyPlace.WebServices.CommonService._staticInstance.SaveMerchantClick(User_ID,Merchant_ID,onSuccess,onFailed,userContext); }
MightyPlace.WebServices.CommonService.SaveNewAdClick= function(User_ID,Ad_ID,onSuccess,onFailed,userContext) {
/// <param name="User_ID" type="Number">System.Int64</param>
/// <param name="Ad_ID" type="Number">System.Int64</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>
MightyPlace.WebServices.CommonService._staticInstance.SaveNewAdClick(User_ID,Ad_ID,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('MightyPlace.Common');
if (typeof(MightyPlace.Common.Country) === 'undefined') {
MightyPlace.Common.Country=gtc("MightyPlace.Common.Country");
MightyPlace.Common.Country.registerClass('MightyPlace.Common.Country');
}
if (typeof(MightyPlace.WebServices.ProfileData) === 'undefined') {
MightyPlace.WebServices.ProfileData=gtc("MightyPlace.WebServices.ProfileData");
MightyPlace.WebServices.ProfileData.registerClass('MightyPlace.WebServices.ProfileData');
}

