Family-Map-Project / FamilyMapServer / FamilyMapServerStudent-master / shared / src / result / FillResult.java
FillResult.java
Raw
package result;

/**
 * Result obtained from attempting to fill the database with generated data for the specified username
 */
public class FillResult
{
    String message;
    boolean success;

    /**
     * Parameterized constructor for a fillResult
     * @param message
     * @param success
     */
    public FillResult(String message, boolean success)
    {
        this.message = message;
        this.success = success;
    }

    public FillResult() {}

    public void setMessage(String message)
    {
        this.message = message;
    }

    public String getMessage()
    {
        return message;
    }

    public void setSuccess(boolean success)
    {
        this.success = success;
    }

    public boolean isSuccess()
    {
        return success;
    }
}