From 2dc15dfbd0df0d314480767c202e0fb8dec29a9e Mon Sep 17 00:00:00 2001 From: Bilal Al Date: Thu, 12 Dec 2024 14:34:53 -0800 Subject: [PATCH] added track to split view --- client/src/main/java/io/split/client/api/SplitView.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/src/main/java/io/split/client/api/SplitView.java b/client/src/main/java/io/split/client/api/SplitView.java index fe89dbf1d..b9ba3fbc4 100644 --- a/client/src/main/java/io/split/client/api/SplitView.java +++ b/client/src/main/java/io/split/client/api/SplitView.java @@ -26,6 +26,7 @@ public class SplitView { public Map configs; public List sets; public String defaultTreatment; + public boolean trackImpression; public static SplitView fromParsedSplit(ParsedSplit parsedSplit) { SplitView splitView = new SplitView(); @@ -46,6 +47,7 @@ public static SplitView fromParsedSplit(ParsedSplit parsedSplit) { splitView.treatments = new ArrayList(treatments); splitView.configs = parsedSplit.configurations() == null? Collections.emptyMap() : parsedSplit.configurations() ; + splitView.trackImpression = parsedSplit.trackImpression(); return splitView; }