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

com.binance4j.mining.param.MinersParams Maven / Gradle / Ivy

There is a newer version: 2.4.0
Show newest version
package com.binance4j.mining.param;

import com.binance4j.core.annotation.Param;
import com.binance4j.core.param.Params;
import com.binance4j.mining.client.MiningClient;
import com.binance4j.mining.dto.MinerSorting;
import com.binance4j.mining.dto.SortSequence;
import com.binance4j.mining.dto.WorkerStatus;

/**
 * {@link MiningClient#getMiners} params.
 * 
 * @param algo         Algorithm.
 * @param userName     Mining account.
 * @param pageIndex    Page number.
 * @param sort         Sort sequence.
 * @param sortColumn   Miner sort.
 * @param workerStatus Miner status.
 */
@Param(weight = 5)
public record MinersParams(String algo, String userName, Integer pageIndex, SortSequence sort, MinerSorting sortColumn, WorkerStatus workerStatus)
		implements Params {
	/**
	 * Creates an instance of {@link MinersParams}.
	 * 
	 * @param algo     Algorithm.
	 * @param userName Mining account.
	 */
	public MinersParams(String algo, String userName) {
		this(algo, userName, null, null, null, null);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy