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

com.binance4j.savings.param.FixedProjectListParams Maven / Gradle / Ivy

There is a newer version: 2.4.0
Show newest version
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