Adding the response object for alerts, initially created as part of the listAlerts refactoring.

This commit is contained in:
Kris McQueen 2010-08-25 18:50:08 -07:00
parent 187d89fce5
commit f30e0dc383

View File

@ -0,0 +1,41 @@
package com.cloud.api.response;
import java.util.Date;
import com.cloud.api.ResponseObject;
import com.cloud.serializer.Param;
public class AlertResponse implements ResponseObject {
@Param(name="type")
private Short alertType;
@Param(name="description")
private String description;
@Param(name="sent")
private Date lastSent;
public Short getAlertType() {
return alertType;
}
public void setAlertType(Short alertType) {
this.alertType = alertType;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public Date getLastSent() {
return lastSent;
}
public void setLastSent(Date lastSent) {
this.lastSent = lastSent;
}
}