Search in sources :

Example 6 with AudienceIdCondition

use of com.optimizely.ab.config.audience.AudienceIdCondition in project java-sdk by optimizely.

the class ConditionJacksonDeserializer method deserialize.

@Override
public Condition deserialize(JsonParser parser, DeserializationContext context) throws IOException {
    JsonNode node = parser.getCodec().readTree(parser);
    Condition conditions = ConditionJacksonDeserializer.<AudienceIdCondition>parseCondition(AudienceIdCondition.class, objectMapper, node);
    return conditions;
}
Also used : EmptyCondition(com.optimizely.ab.config.audience.EmptyCondition) Condition(com.optimizely.ab.config.audience.Condition) NullCondition(com.optimizely.ab.config.audience.NullCondition) OrCondition(com.optimizely.ab.config.audience.OrCondition) NotCondition(com.optimizely.ab.config.audience.NotCondition) AndCondition(com.optimizely.ab.config.audience.AndCondition) InvalidAudienceCondition(com.optimizely.ab.internal.InvalidAudienceCondition) AudienceIdCondition(com.optimizely.ab.config.audience.AudienceIdCondition) AudienceIdCondition(com.optimizely.ab.config.audience.AudienceIdCondition) JsonNode(com.fasterxml.jackson.databind.JsonNode)

Aggregations

AudienceIdCondition (com.optimizely.ab.config.audience.AudienceIdCondition)6 Condition (com.optimizely.ab.config.audience.Condition)4 OrCondition (com.optimizely.ab.config.audience.OrCondition)2 ArrayList (java.util.ArrayList)2 JSONObject (org.json.simple.JSONObject)2 JsonNode (com.fasterxml.jackson.databind.JsonNode)1 Gson (com.google.gson.Gson)1 JsonElement (com.google.gson.JsonElement)1 JsonObject (com.google.gson.JsonObject)1 LinkedTreeMap (com.google.gson.internal.LinkedTreeMap)1 AndCondition (com.optimizely.ab.config.audience.AndCondition)1 EmptyCondition (com.optimizely.ab.config.audience.EmptyCondition)1 NotCondition (com.optimizely.ab.config.audience.NotCondition)1 NullCondition (com.optimizely.ab.config.audience.NullCondition)1 UserAttribute (com.optimizely.ab.config.audience.UserAttribute)1 InvalidAudienceCondition (com.optimizely.ab.internal.InvalidAudienceCondition)1 DecisionReasons (com.optimizely.ab.optimizelydecision.DecisionReasons)1 DecisionResponse (com.optimizely.ab.optimizelydecision.DecisionResponse)1 DefaultDecisionReasons (com.optimizely.ab.optimizelydecision.DefaultDecisionReasons)1 List (java.util.List)1