Skip to content

Commit

Permalink
Merge branch 'main' into prod
Browse files Browse the repository at this point in the history
  • Loading branch information
RudiThoeni committed Dec 3, 2024
2 parents a59503b + d5f13ca commit 49d94a0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DataModel/datamodels/DataModels.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1901,7 +1901,7 @@ public class MeasuringpointReduced : ISource

#region EventShort

public class EventShort : IIdentifiable, IShortName, IImportDateassigneable, ISource, IMappingAware, ILicenseInfo, IPublishedOn, IGPSPointsAware, IImageGalleryAware, IVideoItemsAware
public class EventShort : IIdentifiable, IShortName, IImportDateassigneable, ISource, IMappingAware, ILicenseInfo, IPublishedOn, IGPSPointsAware, IImageGalleryAware, IVideoItemsAware, IHasLanguage
{
public EventShort()
{
Expand Down
9 changes: 8 additions & 1 deletion OdhApiImporter/Helpers/RAVEN/LtsApiv2Operations.cs
Original file line number Diff line number Diff line change
Expand Up @@ -133,17 +133,24 @@ private static async Task AssignGuestcardDataFromNewLtsApi(AccommodationV2 accom
if (accommodation.SmgTags == null)
accommodation.SmgTags = new List<string>();

if (accommodation.SpecialFeaturesIds == null)
accommodation.SpecialFeaturesIds = new List<string>();

//IF guestcard active Add Tag "guestcard"
if (guestcardactive == null || guestcardactive == false)
{
accommodation.SmgTags.TryRemoveOnList("guestcard");
accommodation.TagIds.TryRemoveOnList("guestcard");
//NEW TO Remove, add speciafeature Guestcard
accommodation.SpecialFeaturesIds.TryRemoveOnList("Guestcard");
}
else
{
accommodation.SmgTags.TryAddOrUpdateOnList("guestcard");
accommodation.TagIds.TryAddOrUpdateOnList("guestcard");
}
//NEW TO Remove, add speciafeature Guestcard
accommodation.SpecialFeaturesIds.TryAddOrUpdateOnList("Guestcard");
}

//Compatiblity features to Tags
var amenities = ltsdata["data"] != null ? ltsdata["data"]["amenities"] != null ? ltsdata["data"]["amenities"].ToObject<IList<LtsRidList>>() : null :null;
Expand Down

0 comments on commit 49d94a0

Please sign in to comment.