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

com.binance4j.savings.param.FlexibleProductsParams 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.Featured;
import com.binance4j.savings.dto.FlexibleProductStatus;

/**
 * {@link SavingsClient#getFlexibleProducts} params.
 * 
 * @param status   Product status.
 * @param featured Featured.
 */
@Param
public record FlexibleProductsParams(String status, String featured) implements Params {

	/**
	 * Creates an instance of {@link FlexibleProductsParams}.
	 */
	public FlexibleProductsParams() {
		this((String) null, (String) null);
	}

	/**
	 * Creates an instance of {@link FlexibleProductsParams}.
	 * 
	 * @param status   Product status.
	 * @param featured Featured.
	 */
	public FlexibleProductsParams(FlexibleProductStatus status, Featured featured) {
		this(status == null ? null : status.toString(), featured == null ? null : featured.toString());
	}

	/**
	 * Creates an instance of {@link FlexibleProductsParams}.
	 * 
	 * @param status Product status.
	 */
	public FlexibleProductsParams(FlexibleProductStatus status) {
		this(status, null);
	}

	/**
	 * Creates an instance of {@link FlexibleProductsParams}.
	 * 
	 * @param featured Featured.
	 */
	public FlexibleProductsParams(Featured featured) {
		this(null, featured);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy