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

com.xeiam.xchange.loyalbit.dto.LoyalbitBaseResponse Maven / Gradle / Ivy

package com.xeiam.xchange.loyalbit.dto;

import java.util.Objects;

import com.fasterxml.jackson.annotation.JsonProperty;

import si.mazi.rescu.ExceptionalReturnContentException;

public class LoyalbitBaseResponse {

  private final Integer status;
  private final String message;

  protected LoyalbitBaseResponse(@JsonProperty("status") Integer status, @JsonProperty("message") String message) {
    if (Objects.equals(status, 0)) {
      throw new ExceptionalReturnContentException(message);
    }
    this.status = status;
    this.message = message;
  }

  public String getMessage() {
    return message;
  }

  public Integer getStatus() {
    return status;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy