tangem-app-android-audited/app/src/main/java/org/stellar/sdk/AccountFlag.java
2019-01-13 15:11:34 +03:00

32 lines
1.1 KiB
Java
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package org.stellar.sdk;
import org.stellar.sdk.xdr.AccountFlags;
/**
* AccountFlag is the <code>enum</code> that can be used in {@link SetOptionsOperation}.
* @see <a href="https://www.stellar.org/developers/guides/concepts/accounts.html#flags" target="_blank">Account Flags</a>
*/
public enum AccountFlag {
/**
* Authorization required (0x1): Requires the issuing account to give other accounts permission before they can hold the issuing accounts credit.
*/
AUTH_REQUIRED_FLAG(AccountFlags.AUTH_REQUIRED_FLAG.getValue()),
/**
* Authorization revocable (0x2): Allows the issuing account to revoke its credit held by other accounts.
*/
AUTH_REVOCABLE_FLAG(AccountFlags.AUTH_REVOCABLE_FLAG.getValue()),
/**
* Authorization immutable (0x4): If this is set then none of the authorization flags can be set and the account can never be deleted.
*/
AUTH_IMMUTABLE_FLAG(AccountFlags.AUTH_IMMUTABLE_FLAG.getValue()),
;
private final int value;
AccountFlag(int value) {
this.value = value;
}
public int getValue() {
return value;
}
}