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

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

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

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

public class AccountPermissionSetOpTemplate implements AccountPermissionSetOperation {

    static {
        DataContractRegistry.register(AccountPermissionSetOperation.class);
    }

    private int mode = -1;
    private Bytes address;
    private AccountType accountType;
    private String role;

    public AccountPermissionSetOpTemplate(Bytes address, AccountType accountType) {
        this.address = address;
        this.accountType = accountType;
    }

    @Override
    public Bytes getAddress() {
        return address;
    }

    @Override
    public AccountType getAccountType() {
        return accountType;
    }

    @Override
    public int getMode() {
        return mode;
    }

    public void setMode(int mode) {
        this.mode = mode;
    }

    @Override
    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy