package io.cheng.flowerate.v0.models; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import java.lang.Boolean; import java.lang.Double; import java.lang.Long; import java.lang.String; import java.util.Map; import lombok.Data; import me.geso.tinyvalidator.constraints.NotNull; /** * Generated by API Builder - https://www.apibuilder.io * Service version: 0.0.1-dev * User agent: apibuilder app.apibuilder.io/chenggit/flowerate/0.0.1-dev/java_aws_lambda_pojo_client * * WARNING: not all features (notably unions) and data types work with the java generator yet. * Java POJO generator is designed to be used with AWS Lambdas. * If you are considering using this library, would like to request/discuss features, or would like to share how you're using it, please contact daniel.kirby@gilt.com * * fixer.io response for exchange rate between two currencies */ @Data @JsonIgnoreProperties( ignoreUnknown = true ) public class FixerRatesSuccessResponse implements FixerRateResponse { @NotNull protected Boolean success; @NotNull protected Currency base; @NotNull protected Map rates; @NotNull protected Long timestamp; public FixerRatesSuccessResponse(Boolean success, Currency base, Map rates, Long timestamp) { this.success = success; this.base = base; this.rates = rates; this.timestamp = timestamp; } public FixerRatesSuccessResponse() { } /** * response status, should be true in this case */ public Boolean getSuccess() { return success; } public void setSuccess(Boolean success) { this.success = success; } /** * base currency */ public Currency getBase() { return base; } public void setBase(Currency base) { this.base = base; } /** * target currencies */ public Map getRates() { return rates; } public void setRates(Map rates) { this.rates = rates; } /** * epoch timestamp of returned exchange rate */ public Long getTimestamp() { return timestamp; } public void setTimestamp(Long timestamp) { this.timestamp = timestamp; } }