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

com.jd.blockchain.transaction.AccountPermissionSetOperationBuilderImpl Maven / Gradle / Ivy

There is a newer version: 1.6.5.RELEASE
Show newest version
package com.jd.blockchain.transaction;

import com.jd.blockchain.ledger.AccountPermissionSetOperation;
import com.jd.blockchain.ledger.AccountType;
import utils.Bytes;

public class AccountPermissionSetOperationBuilderImpl implements AccountPermissionSetOperationBuilder {

    private AccountPermissionSetOpTemplate operation;

    public AccountPermissionSetOperationBuilderImpl(Bytes address, AccountType accountType) {
        operation = new AccountPermissionSetOpTemplate(address, accountType);
    }

    @Override
    public AccountPermissionSetOperation getOperation() {
        return operation;
    }

    @Override
    public AccountPermissionSetOperationBuilder mode(int mode) {
        operation.setMode(mode);

        return this;
    }

    @Override
    public AccountPermissionSetOperationBuilder role(String role) {
        operation.setRole(role.toUpperCase());

        return this;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy