package lan.dk.podcastserver.utils.facade.stats;

import java.util.Set;

/**
 * Created by kevin on 28/04/15 for HackerRank problem
 */
public class StatsPodcastType {

    public final String type;
    public final Set<NumberOfItemByDateWrapper> values;

    public StatsPodcastType(String type, Set<NumberOfItemByDateWrapper> values) {
        this.type = type;
        this.values = values;
    }

    public String type() {
        return type;
    }

    public Set<NumberOfItemByDateWrapper> values() {
        return values;
    }
}

@@ -43,16 +43,71 @@
 stats;%0A%0A
+import com.fasterxml.jackson.annotation.JsonProperty;%0A%0A
 import j
@@ -120,16 +120,16 @@
 il.Set;%0A
-
 %0A/**%0A * 
@@ -218,29 +218,30 @@
 ype %7B%0A%0A    p
-ublic
+rivate
  final Strin
@@ -253,21 +253,22 @@
 e;%0A    p
-ublic
+rivate
  final S
@@ -443,32 +443,58 @@
  values;%0A    %7D%0A%0A
+    @JsonProperty(%22type%22)%0A
     public Strin
@@ -528,24 +528,52 @@
 ype;%0A    %7D%0A%0A
+    @JsonProperty(%22values%22)%0A
     public S

add annotation to serialize to JSON