
org.identifiers.cloud.libapi.models.ServiceRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of libapi Show documentation
Show all versions of libapi Show documentation
This library provides client side service wrappers to access identifiers.org Cloud based API
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