package com.linkedin.thirdeye.datalayer.dto; import com.linkedin.thirdeye.anomalydetection.context.AnomalyFeedback; import com.linkedin.thirdeye.constant.AnomalyFeedbackType; import com.linkedin.thirdeye.constant.FeedbackStatus; import java.io.Serializable; import com.linkedin.thirdeye.datalayer.pojo.AnomalyFeedbackBean; public class AnomalyFeedbackDTO extends AnomalyFeedbackBean implements AnomalyFeedback, Serializable { private static final long serialVersionUID = 1L; public AnomalyFeedbackDTO() { this.setFeedbackType(AnomalyFeedbackType.NO_FEEDBACK); this.setStatus(FeedbackStatus.NEW); this.setComment(""); } public AnomalyFeedbackDTO(AnomalyFeedback anomalyFeedback) { this(); if (anomalyFeedback != null) { if (anomalyFeedback.getFeedbackType() != null) { this.setFeedbackType(anomalyFeedback.getFeedbackType()); } if (anomalyFeedback.getStatus() != null) { this.setStatus(anomalyFeedback.getStatus()); } if (anomalyFeedback.getFeedbackType() != null) { this.setComment(anomalyFeedback.getComment()); } } } }