package com.google.sampling.experiential.server;

import java.util.List;

import com.google.common.collect.Lists;
import com.google.sampling.experiential.shared.EventDAO;

public class EventQueryStatus {

  private String status;
  private String errorMessage;
  private List<EventDAO> events = Lists.newArrayList();

  public String getStatus() {
    return status;
  }

  public void setStatus(String status) {
    this.status = status;
  }

  public String getErrorMessage() {
    return errorMessage;
  }

  public void setErrorMessage(String errorMessage) {
    this.errorMessage = errorMessage;
  }

  public List<EventDAO> getEvents() {
    return events;
  }

  public void setEvents(List<EventDAO> events) {
    this.events = events;
  }

}

@@ -163,16 +163,63 @@
 ventDAO;
+%0Aimport com.pacoapp.paco.shared.util.Constants;
 %0A%0Apublic
@@ -264,24 +264,44 @@
 tring status
+ = Constants.SUCCESS
 ;%0A  private 
@@ -653,32 +653,69 @@
 = errorMessage;%0A
+    this.status = Constants.FAILURE;%0A
   %7D%0A%0A  public Li

set default error status to false