package com.hipchalytics.model;

import java.io.Serializable;

/**
 * Bean that represents a hipchat message. This bean contains actual {@link Room} and {@link User}
 * objects instead of IDs. The slimmer version of this object is {@link Message}.
 *
 * @author giannis
 *
 */
public class FatMessage implements Serializable {

    private final Message message;
    private final User user;
    private final Room room;

    private static final long serialVersionUID = 6236626325756335748L;

    public FatMessage(Message message, User user, Room room) {
        this.message = message;
        this.user = user;
        this.room = room;
    }

    public Message getMessage() {
        return message;
    }

    public User getUser() {
        return user;
    }

    public Room getRoom() {
        return room;
    }

}

@@ -26,16 +26,56 @@
 model;%0A%0A
+import com.google.common.base.Objects;%0A%0A
 import j
@@ -858,10 +858,217 @@
 %0A    %7D%0A%0A
+    @Override%0A    public String toString() %7B%0A        return Objects.toStringHelper(this)%0A            .add(%22message%22, message)%0A            .add(%22user%22, user)%0A            .add(%22room%22, room).toString();%0A    %7D%0A%0A
 %7D%0A

Add toString to FatMessage