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

io.everitoken.sdk.java.abi.IssueTokenAction Maven / Gradle / Ivy

There is a newer version: 1.4.6
Show newest version
package io.everitoken.sdk.java.abi;

import java.util.List;
import java.util.stream.Collectors;

import com.alibaba.fastjson.annotation.JSONField;

import org.jetbrains.annotations.Contract;
import org.jetbrains.annotations.NotNull;

import io.everitoken.sdk.java.Address;

public class IssueTokenAction extends Abi {

    @JSONField(deserialize = false, serialize = false)
    private static final String key = ".issue";

    @JSONField(deserialize = false, serialize = false)
    private static final String name = "issuetoken";

    private final List names;
    private final List
owner; private IssueTokenAction(String domain, List names, List
owner) { super(name, key, domain); this.names = names; this.owner = owner; } @NotNull @Contract("_, _, _ -> new") public static IssueTokenAction of(String domain, List names, List
owner) { return new IssueTokenAction(domain, names, owner); } @Override @JSONField(name = "domain") public String getDomain() { return super.getDomain(); } public List getNames() { return names; } public List getOwner() { return owner.stream().map(Address::toString).collect(Collectors.toList()); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy