Type.registerNamespace('Valassis.RedPlum.Web.FrameComponents.Web.Services');
Valassis.RedPlum.Web.FrameComponents.Web.Services.OfferService=function() {
Valassis.RedPlum.Web.FrameComponents.Web.Services.OfferService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
Valassis.RedPlum.Web.FrameComponents.Web.Services.OfferService.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return Valassis.RedPlum.Web.FrameComponents.Web.Services.OfferService._staticInstance.get_path();},
GetOffers:function(offerIds,WidgetContentGroupId,ZipCode,CurrDate,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetOffers',true,{offerIds:offerIds,WidgetContentGroupId:WidgetContentGroupId,ZipCode:ZipCode,CurrDate:CurrDate},succeededCallback,failedCallback,userContext); },
GetOffersByOfferGroup:function(OfferGroupId,CurrDate,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetOffersByOfferGroup',true,{OfferGroupId:OfferGroupId,CurrDate:CurrDate},succeededCallback,failedCallback,userContext); },
GetOffersByOfferGroupVendor:function(OfferGroupId,VendorId,CurrDate,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetOffersByOfferGroupVendor',true,{OfferGroupId:OfferGroupId,VendorId:VendorId,CurrDate:CurrDate},succeededCallback,failedCallback,userContext); },
GetOffersByContentGroup:function(widgetContentGroupId,ZipCode,isSecureOnly,nonSecureOnly,CurrDate,offset,pageSize,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetOffersByContentGroup',true,{widgetContentGroupId:widgetContentGroupId,ZipCode:ZipCode,isSecureOnly:isSecureOnly,nonSecureOnly:nonSecureOnly,CurrDate:CurrDate,offset:offset,pageSize:pageSize},succeededCallback,failedCallback,userContext); },
GetLocalOffersByContentGroup:function(widgetContentGroupId,Latitude,Longitude,RadiusMiles,ZipCode,CurrDate,IsSecureOnly,NonSecureOnly,offset,pageSize,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetLocalOffersByContentGroup',true,{widgetContentGroupId:widgetContentGroupId,Latitude:Latitude,Longitude:Longitude,RadiusMiles:RadiusMiles,ZipCode:ZipCode,CurrDate:CurrDate,IsSecureOnly:IsSecureOnly,NonSecureOnly:NonSecureOnly,offset:offset,pageSize:pageSize},succeededCallback,failedCallback,userContext); },
GetOfferVendors:function(OfferId,Latitude,Longitude,Radius,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetOfferVendors',true,{OfferId:OfferId,Latitude:Latitude,Longitude:Longitude,Radius:Radius},succeededCallback,failedCallback,userContext); },
GetFavorites:function(WidgetContentGroupId,ZipCode,CurrDate,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetFavorites',true,{WidgetContentGroupId:WidgetContentGroupId,ZipCode:ZipCode,CurrDate:CurrDate},succeededCallback,failedCallback,userContext); },
AddFavorites:function(OfferIds,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'AddFavorites',false,{OfferIds:OfferIds},succeededCallback,failedCallback,userContext); },
RemoveFavorites:function(OfferIds,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'RemoveFavorites',false,{OfferIds:OfferIds},succeededCallback,failedCallback,userContext); },
Share:function(FromName,FromEmail,Emails,OfferId,Message,SynSrc,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'Share',false,{FromName:FromName,FromEmail:FromEmail,Emails:Emails,OfferId:OfferId,Message:Message,SynSrc:SynSrc},succeededCallback,failedCallback,userContext); }}
Valassis.RedPlum.Web.FrameComponents.Web.Services.OfferService.registerClass('Valassis.RedPlum.Web.FrameComponents.Web.Services.OfferService',Sys.Net.WebServiceProxy);
Valassis.RedPlum.Web.FrameComponents.Web.Services.OfferService._staticInstance = new Valassis.RedPlum.Web.FrameComponents.Web.Services.OfferService();
Valassis.RedPlum.Web.FrameComponents.Web.Services.OfferService.set_path = function(value) { Valassis.RedPlum.Web.FrameComponents.Web.Services.OfferService._staticInstance.set_path(value); }
Valassis.RedPlum.Web.FrameComponents.Web.Services.OfferService.get_path = function() { return Valassis.RedPlum.Web.FrameComponents.Web.Services.OfferService._staticInstance.get_path(); }
Valassis.RedPlum.Web.FrameComponents.Web.Services.OfferService.set_timeout = function(value) { Valassis.RedPlum.Web.FrameComponents.Web.Services.OfferService._staticInstance.set_timeout(value); }
Valassis.RedPlum.Web.FrameComponents.Web.Services.OfferService.get_timeout = function() { return Valassis.RedPlum.Web.FrameComponents.Web.Services.OfferService._staticInstance.get_timeout(); }
Valassis.RedPlum.Web.FrameComponents.Web.Services.OfferService.set_defaultUserContext = function(value) { Valassis.RedPlum.Web.FrameComponents.Web.Services.OfferService._staticInstance.set_defaultUserContext(value); }
Valassis.RedPlum.Web.FrameComponents.Web.Services.OfferService.get_defaultUserContext = function() { return Valassis.RedPlum.Web.FrameComponents.Web.Services.OfferService._staticInstance.get_defaultUserContext(); }
Valassis.RedPlum.Web.FrameComponents.Web.Services.OfferService.set_defaultSucceededCallback = function(value) { Valassis.RedPlum.Web.FrameComponents.Web.Services.OfferService._staticInstance.set_defaultSucceededCallback(value); }
Valassis.RedPlum.Web.FrameComponents.Web.Services.OfferService.get_defaultSucceededCallback = function() { return Valassis.RedPlum.Web.FrameComponents.Web.Services.OfferService._staticInstance.get_defaultSucceededCallback(); }
Valassis.RedPlum.Web.FrameComponents.Web.Services.OfferService.set_defaultFailedCallback = function(value) { Valassis.RedPlum.Web.FrameComponents.Web.Services.OfferService._staticInstance.set_defaultFailedCallback(value); }
Valassis.RedPlum.Web.FrameComponents.Web.Services.OfferService.get_defaultFailedCallback = function() { return Valassis.RedPlum.Web.FrameComponents.Web.Services.OfferService._staticInstance.get_defaultFailedCallback(); }
Valassis.RedPlum.Web.FrameComponents.Web.Services.OfferService.set_path("/RedPlumWidget/services/OfferService.asmx");
Valassis.RedPlum.Web.FrameComponents.Web.Services.OfferService.GetOffers= function(offerIds,WidgetContentGroupId,ZipCode,CurrDate,onSuccess,onFailed,userContext) {Valassis.RedPlum.Web.FrameComponents.Web.Services.OfferService._staticInstance.GetOffers(offerIds,WidgetContentGroupId,ZipCode,CurrDate,onSuccess,onFailed,userContext); }
Valassis.RedPlum.Web.FrameComponents.Web.Services.OfferService.GetOffersByOfferGroup= function(OfferGroupId,CurrDate,onSuccess,onFailed,userContext) {Valassis.RedPlum.Web.FrameComponents.Web.Services.OfferService._staticInstance.GetOffersByOfferGroup(OfferGroupId,CurrDate,onSuccess,onFailed,userContext); }
Valassis.RedPlum.Web.FrameComponents.Web.Services.OfferService.GetOffersByOfferGroupVendor= function(OfferGroupId,VendorId,CurrDate,onSuccess,onFailed,userContext) {Valassis.RedPlum.Web.FrameComponents.Web.Services.OfferService._staticInstance.GetOffersByOfferGroupVendor(OfferGroupId,VendorId,CurrDate,onSuccess,onFailed,userContext); }
Valassis.RedPlum.Web.FrameComponents.Web.Services.OfferService.GetOffersByContentGroup= function(widgetContentGroupId,ZipCode,isSecureOnly,nonSecureOnly,CurrDate,offset,pageSize,onSuccess,onFailed,userContext) {Valassis.RedPlum.Web.FrameComponents.Web.Services.OfferService._staticInstance.GetOffersByContentGroup(widgetContentGroupId,ZipCode,isSecureOnly,nonSecureOnly,CurrDate,offset,pageSize,onSuccess,onFailed,userContext); }
Valassis.RedPlum.Web.FrameComponents.Web.Services.OfferService.GetLocalOffersByContentGroup= function(widgetContentGroupId,Latitude,Longitude,RadiusMiles,ZipCode,CurrDate,IsSecureOnly,NonSecureOnly,offset,pageSize,onSuccess,onFailed,userContext) {Valassis.RedPlum.Web.FrameComponents.Web.Services.OfferService._staticInstance.GetLocalOffersByContentGroup(widgetContentGroupId,Latitude,Longitude,RadiusMiles,ZipCode,CurrDate,IsSecureOnly,NonSecureOnly,offset,pageSize,onSuccess,onFailed,userContext); }
Valassis.RedPlum.Web.FrameComponents.Web.Services.OfferService.GetOfferVendors= function(OfferId,Latitude,Longitude,Radius,onSuccess,onFailed,userContext) {Valassis.RedPlum.Web.FrameComponents.Web.Services.OfferService._staticInstance.GetOfferVendors(OfferId,Latitude,Longitude,Radius,onSuccess,onFailed,userContext); }
Valassis.RedPlum.Web.FrameComponents.Web.Services.OfferService.GetFavorites= function(WidgetContentGroupId,ZipCode,CurrDate,onSuccess,onFailed,userContext) {Valassis.RedPlum.Web.FrameComponents.Web.Services.OfferService._staticInstance.GetFavorites(WidgetContentGroupId,ZipCode,CurrDate,onSuccess,onFailed,userContext); }
Valassis.RedPlum.Web.FrameComponents.Web.Services.OfferService.AddFavorites= function(OfferIds,onSuccess,onFailed,userContext) {Valassis.RedPlum.Web.FrameComponents.Web.Services.OfferService._staticInstance.AddFavorites(OfferIds,onSuccess,onFailed,userContext); }
Valassis.RedPlum.Web.FrameComponents.Web.Services.OfferService.RemoveFavorites= function(OfferIds,onSuccess,onFailed,userContext) {Valassis.RedPlum.Web.FrameComponents.Web.Services.OfferService._staticInstance.RemoveFavorites(OfferIds,onSuccess,onFailed,userContext); }
Valassis.RedPlum.Web.FrameComponents.Web.Services.OfferService.Share= function(FromName,FromEmail,Emails,OfferId,Message,SynSrc,onSuccess,onFailed,userContext) {Valassis.RedPlum.Web.FrameComponents.Web.Services.OfferService._staticInstance.Share(FromName,FromEmail,Emails,OfferId,Message,SynSrc,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('Valassis.RedPlum.Web.FrameComponents.Web.Services.Response');
if (typeof(Valassis.RedPlum.Web.FrameComponents.Web.Services.Response.OfferResponse) === 'undefined') {
Valassis.RedPlum.Web.FrameComponents.Web.Services.Response.OfferResponse=gtc("Valassis.RedPlum.Web.FrameComponents.Web.Services.Response.OfferResponse");
Valassis.RedPlum.Web.FrameComponents.Web.Services.Response.OfferResponse.registerClass('Valassis.RedPlum.Web.FrameComponents.Web.Services.Response.OfferResponse');
}
if (typeof(Valassis.RedPlum.Web.FrameComponents.Web.Services.Response.VendorResponse) === 'undefined') {
Valassis.RedPlum.Web.FrameComponents.Web.Services.Response.VendorResponse=gtc("Valassis.RedPlum.Web.FrameComponents.Web.Services.Response.VendorResponse");
Valassis.RedPlum.Web.FrameComponents.Web.Services.Response.VendorResponse.registerClass('Valassis.RedPlum.Web.FrameComponents.Web.Services.Response.VendorResponse');
}
if (typeof(Valassis.RedPlum.Web.FrameComponents.Web.Services.Response.ScalarResponse) === 'undefined') {
Valassis.RedPlum.Web.FrameComponents.Web.Services.Response.ScalarResponse=gtc("Valassis.RedPlum.Web.FrameComponents.Web.Services.Response.ScalarResponse");
Valassis.RedPlum.Web.FrameComponents.Web.Services.Response.ScalarResponse.registerClass('Valassis.RedPlum.Web.FrameComponents.Web.Services.Response.ScalarResponse');
}

