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

org.identifiers.cloud.libapi.models.ServiceRequest Maven / Gradle / Ivy

Go to download

This library provides client side service wrappers to access identifiers.org Cloud based API

There is a newer version: 2.6.0
Show newest version
package org.identifiers.cloud.libapi.models;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

import java.io.Serializable;

/**
 * @author Manuel Bernal Llinares 
 * Project: libapi
 * Package: org.identifiers.cloud.libapi.models
 * Timestamp: 2018-03-06 11:28
 * ---
 *
 * This is a generic class that models the common parts to any service request, e.g. the api version information.
 *
 * It is specialized with the payload that corresponds to every particular service requests.
 */
@JsonIgnoreProperties(ignoreUnknown = true)
public class ServiceRequest implements Serializable {
    private String apiVersion;
    private T payload;

    public String getApiVersion() {
        return apiVersion;
    }

    public ServiceRequest setApiVersion(String apiVersion) {
        this.apiVersion = apiVersion;
        return this;
    }

    public T getPayload() {
        return payload;
    }

    public ServiceRequest setPayload(T payload) {
        this.payload = payload;
        return this;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy