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

com.testfabrik.webmate.javasdk.ApiResult Maven / Gradle / Ivy

There is a newer version: 0.56
Show newest version
package com.testfabrik.webmate.javasdk;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.JsonNode;

import java.util.Objects;

/**
 * Generic API Result type wrapping value type T.
 */
public class ApiResult {

    @JsonProperty
    public T value;

    @JsonProperty("meta")
    public JsonNode metaInfo;

    // for Jackson
    private ApiResult() {}

    public ApiResult(T value, JsonNode metaInfo) {
        this.value = value;
        this.metaInfo = metaInfo;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy