package com.ziffit.autoconfigure.spring.web;

import java.util.ArrayList;
import java.util.List;

public class CommonDTO {

    private List<String> eventMessages;
    private List<String> errorMessages;

    public CommonDTO() {
        eventMessages = new ArrayList<>();
        errorMessages = new ArrayList<>();
    }

    public void addEventMessage(String message) {
        eventMessages.add(message);
    }

    public void addErrorMessage(String errorMessage) {
        errorMessages.add(errorMessage);
    }

    public List<String> getEventMessages() {
        return eventMessages;
    }

    public void setEventMessages(List<String> eventMessages) {
        this.eventMessages = eventMessages;
    }

    public List<String> getErrorMessages() {
        return errorMessages;
    }

    public void setErrorMessages(List<String> errorMessages) {
        this.errorMessages = errorMessages;
    }
}

Add a base data transfer object.
Add a base data transfer object.
