All Downloads are FREE. Search and download functionalities are using the official Maven repository.

dev.sixpack.api.data.Result Maven / Gradle / Ivy

The newest version!
package dev.sixpack.api.data;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.Instant;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Result {
    private ResultStatus resultStatus;
    private String message;
    private JMap contextMap;
    private Instant nextIterationDate;
    private Configuration output;
    private Instant date;

    public static Result failed(String message, JMap contextMap) {
        return new Result(
            ResultStatus.ERROR,
            message,
            contextMap,
            null,
            null,
            Instant.now());
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy