com.github.agogs.holidayapi.model.HolidayAPIResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-holiday-api Show documentation
Show all versions of java-holiday-api Show documentation
Your project description here
package com.github.agogs.holidayapi.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import lombok.Getter;
import lombok.Setter;
import java.util.List;
/**
* This class represents the complete JSON response of the API /v1/holidays
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
"status",
"error",
"holidays"
})
public class HolidayAPIResponse {
@JsonProperty("status")
@Getter
@Setter
private Integer status;
@JsonProperty("holidays")
@Getter
@Setter
private List holidays;
@JsonProperty("error")
@Getter
@Setter
private String error;
@Override
public String toString() {
return "HolidayResponse{" +
"status=" + status +
", holidays=" + holidays +
", error='" + error + '\'' +
'}';
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy