From f0755fbb3309c93c8490dc8bbdfb7e2e7613bef6 Mon Sep 17 00:00:00 2001 From: Pete Smith <5278441+aataraxiaa@users.noreply.github.com> Date: Thu, 5 Dec 2024 10:15:01 +0000 Subject: [PATCH] Add Missing Enum to Freemium RMF Implementation (#1114) **Required**: Task/Issue URL: https://app.asana.com/0/1206488453854252/1208904081551825/f iOS PR: https://github.com/duckduckgo/iOS/pull/3673 macOS PR: https://github.com/duckduckgo/macos-browser/pull/3631 What kind of version bump will this require?: Patch **Description**: Adding missing Freemium RMF enum --- .../Mappers/JsonToRemoteMessageModelMapper.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Sources/RemoteMessaging/Mappers/JsonToRemoteMessageModelMapper.swift b/Sources/RemoteMessaging/Mappers/JsonToRemoteMessageModelMapper.swift index 7d7e83bc8..1699644ea 100644 --- a/Sources/RemoteMessaging/Mappers/JsonToRemoteMessageModelMapper.swift +++ b/Sources/RemoteMessaging/Mappers/JsonToRemoteMessageModelMapper.swift @@ -51,6 +51,7 @@ private enum AttributesKey: String, CaseIterable { case duckPlayerOnboarded case duckPlayerEnabled case messageShown + case isCurrentFreemiumPIRUser func matchingAttribute(jsonMatchingAttribute: AnyDecodable) -> MatchingAttribute { switch self { @@ -86,6 +87,7 @@ private enum AttributesKey: String, CaseIterable { case .duckPlayerOnboarded: return DuckPlayerOnboardedMatchingAttribute(jsonMatchingAttribute: jsonMatchingAttribute) case .duckPlayerEnabled: return DuckPlayerEnabledMatchingAttribute(jsonMatchingAttribute: jsonMatchingAttribute) case .messageShown: return MessageShownMatchingAttribute(jsonMatchingAttribute: jsonMatchingAttribute) + case .isCurrentFreemiumPIRUser: return FreemiumPIRCurrentUserMatchingAttribute(jsonMatchingAttribute: jsonMatchingAttribute) } } }