com.binance4j.savings.param.FixedProjectListParams Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of binance4j-savings Show documentation
Show all versions of binance4j-savings Show documentation
Connector for the savings endpoints of the Binance API
package com.binance4j.savings.param;
import com.binance4j.core.annotation.Param;
import com.binance4j.core.param.Params;
import com.binance4j.savings.client.SavingsClient;
import com.binance4j.savings.dto.FixedProjectStatus;
import com.binance4j.savings.dto.FixedProjectType;
/**
* {@link SavingsClient#getFixedProjects} params.
*
* @param type Project type.
* @param asset Asset.
* @param status Project status. default: {@code START_TIME}.
*/
@Param
public record FixedProjectListParams(String type, String asset, String status) implements Params {
/**
* Creates an instance of {@link FixedProjectListParams}.
*
* @param type Project type.
* @param asset Asset.
* @param status Project status. default: {@code START_TIME}.
*/
public FixedProjectListParams(FixedProjectType type, String asset, FixedProjectStatus status) {
this(type == null ? null : type.toString(), asset, status == null ? null : status.toString());
}
/**
* Creates an instance of {@link FixedProjectListParams}.
*
* @param type Project type.
*/
public FixedProjectListParams(FixedProjectType type) {
this(type == null ? null : type.toString(), null, null);
}
/**
* Creates an instance of {@link FixedProjectListParams}.
*
* @param type Project type.
* @param asset Asset.
*/
public FixedProjectListParams(FixedProjectType type, String asset) {
this(type == null ? null : type.toString(), asset, null);
}
/**
* Creates an instance of {@link FixedProjectListParams}.
*
* @param type Project type.
* @param status Project status.
*/
public FixedProjectListParams(FixedProjectType type, FixedProjectStatus status) {
this(type == null ? null : type.toString(), null, status == null ? null : status.toString());
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy