package api.account;

import org.jetbrains.annotations.NotNull;
import api.ExecuteResult;
import replicationAnnotations.AccessLevel;

/**
 * Версия 6 интерфейса. Позволяет массово создавать эккаунты по префиксу имени. Используется ботами.
 * @author andrey.kuprishov
 */
public interface AccountAPIInterface6 extends AccountAPIInterface5 {

  /**
   * Creates accounts that are named by pattern:
   * <namePrefix> + <startSuffix+i>, where i changes from 0 to count-1.
   * Example: namePrefix = bot, startSuffix = 10, count = 2, bot10, bot11 will be created.
   *
   * If any of accounts exists but with another password creation failes, and reason contains description for first occured account. 
   */
  @NotNull
  ExecuteResult createAccounts(@NotNull String namePrefix, @NotNull String passwordPrefix,
                               @NotNull AccessLevel accessLevel,
                               int startSuffix, int count);  
}