Skip to content

Commit

Permalink
Add Missing Enum to Freemium RMF Implementation (#1114)
Browse files Browse the repository at this point in the history
**Required**:

Task/Issue URL:
https://app.asana.com/0/1206488453854252/1208904081551825/f
iOS PR: duckduckgo/iOS#3673
macOS PR: duckduckgo/macos-browser#3631
What kind of version bump will this require?: Patch

**Description**: Adding missing Freemium RMF enum
  • Loading branch information
aataraxiaa authored Dec 5, 2024
1 parent 0448a76 commit f0755fb
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ private enum AttributesKey: String, CaseIterable {
case duckPlayerOnboarded
case duckPlayerEnabled
case messageShown
case isCurrentFreemiumPIRUser

func matchingAttribute(jsonMatchingAttribute: AnyDecodable) -> MatchingAttribute {
switch self {
Expand Down Expand Up @@ -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)
}
}
}
Expand Down

0 comments on commit f0755fb

Please sign in to comment.