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

org.knowm.xchange.cobinhood.dto.CobinhoodResponse Maven / Gradle / Ivy

There is a newer version: 4.3.17.1
Show newest version
package org.knowm.xchange.cobinhood.dto;

import com.fasterxml.jackson.annotation.JsonProperty;

public class CobinhoodResponse {
  private final Boolean success;
  private final CobinhoodError error;
  private final T result;

  public CobinhoodResponse(
      @JsonProperty("success") Boolean success,
      @JsonProperty("error") CobinhoodError error,
      @JsonProperty("result") T result) {
    this.success = success;
    this.error = error;
    this.result = result;
  }

  public Boolean isSuccess() {
    return success;
  }

  public CobinhoodError getError() {
    return error;
  }

  public T getResult() {
    return result;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy