package com.chatalytics.core.model;

import com.fasterxml.jackson.annotation.JsonIgnore;

import org.joda.time.DateTime;

import lombok.AllArgsConstructor;
import lombok.EqualsAndHashCode;
import lombok.Getter;

/**
 * Summary event for a chat message. This object does not include the actual message and can be
 * safely exposed through the ChatAlytics API.
 *
 * @author giannis
 */
@Getter
@EqualsAndHashCode
@AllArgsConstructor
public class MessageSummary implements IMentionable<Integer> {

    private static final long serialVersionUID = 4610523559744723974L;

    private final String username;
    private final String roomName;
    private final DateTime mentionTime;
    /**
     * Occurrences will always be 1. This field is here to make JSON serialization easier
     */
    private final int occurrences = 1;

    @Override
    @JsonIgnore
    public Integer getValue() {
        return occurrences;
    }
}

@@ -34,61 +34,8 @@
 l;%0A%0A
-import com.fasterxml.jackson.annotation.JsonIgnore;%0A%0A
 impo
@@ -614,24 +614,25 @@
 entionTime;%0A
+%0A
     /**%0A    
@@ -762,91 +762,286 @@
 nces
- = 1
 ;%0A
-%0A
     
-@Override%0A    @JsonIgnore%0A    public Integer getValue() %7B%0A        return
+private final Integer value;%0A%0A    public MessageSummary(String username, String roomName, DateTime mentionTime) %7B%0A        this.username = username;%0A        this.roomName = roomName;%0A        this.mentionTime = mentionTime;%0A        this.occurrences = 1;%0A        this.value =
  occ

Add a value field to MessageSummary