package com.mparticle.sdk.model.registration;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.mparticle.sdk.model.eventprocessing.Event;

import java.util.List;

public final class EventProcessingRegistration {

    @JsonProperty("description")
    private String description;

    @JsonProperty("settings")
    private List<Setting> settings;

    @JsonProperty("supported_event_types")
    private List<Event.Type> supportedEventTypes;

    @JsonProperty("max_data_age_hours")
    @JsonInclude(JsonInclude.Include.NON_DEFAULT)
    private int maxDataAgeHours;


    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public List<Setting> getSettings() {
        return settings;
    }

    public void setSettings(List<Setting> settings) {
        this.settings = settings;
    }

    public List<Event.Type> getSupportedEventTypes() {
        return supportedEventTypes;
    }

    public void setSupportedEventTypes(List<Event.Type> supportedEventTypes) {
        this.supportedEventTypes = supportedEventTypes;
    }

    public int getMaxDataAgeHours() {
        return maxDataAgeHours;
    }

    public void setMaxDataAgeHours(int maxDataAgeHours) {
        this.maxDataAgeHours = maxDataAgeHours;
    }
}

@@ -44,61 +44,8 @@
 n;%0A%0A
-import com.fasterxml.jackson.annotation.JsonInclude;%0A
 impo
@@ -494,58 +494,8 @@
 s%22)%0A
-    @JsonInclude(JsonInclude.Include.NON_DEFAULT)%0A
     
@@ -521,18 +521,22 @@
 AgeHours
+ = 24
 ;
-%0A
 %0A%0A    pu

max data age defaults to 24 hours