/// <summary> /// Initializes a new instance of the <see cref="AddressModification" /> class. /// </summary> /// <param name="networkType"></param> /// <param name="version"></param> /// <param name="deadline"></param> /// <param name="propertyType"></param> /// <param name="propertyModifications"></param> /// <param name="maxFee"></param> /// <param name="signature"></param> /// <param name="signer"></param> /// <param name="transactionInfo"></param> public AddressModification(NetworkType networkType, int version, Deadline deadline, PropertyType propertyType, IList <AccountPropertyModification <Address> > propertyModifications, ulong?maxFee, string signature = null, PublicAccount signer = null, TransactionInfo transactionInfo = null) : base(networkType, version, EntityType.MODIFY_ACCOUNT_PROPERTY_ADDRESS, deadline, propertyType, propertyModifications, maxFee, signature, signer, transactionInfo) { }
/// <summary> /// Initializes a new instance of the <see cref="MultisigAccountInfo" /> class. /// </summary> /// <param name="account">The account.</param> /// <param name="minApproval">The minimum approval.</param> /// <param name="minRemoval">The minimum removal.</param> /// <param name="cosignatories">The cosignatories.</param> /// <param name="multisigAccounts">The multisig accounts.</param> public MultisigAccountInfo(PublicAccount account, int minApproval, int minRemoval, List <PublicAccount> cosignatories, List <PublicAccount> multisigAccounts) { Account = account; MinApproval = minApproval; MinRemoval = minRemoval; Cosignatories = cosignatories; MultisigAccounts = multisigAccounts; }
/// <summary> /// Checks if an account is cosignatory of the multisig account. /// </summary> /// <param name="account">The account.</param> /// <returns><c>true</c> if the specified account has cosigners; otherwise, <c>false</c>.</returns> public bool HasCosigners(PublicAccount account) { return(Cosignatories.Contains(account)); }
/// <summary> /// Checks if the multisig account is cosignatory of an account. /// </summary> /// <param name="account">The account.</param> /// <returns><c>true</c> if [is cosigner of multisig account] [the specified account]; otherwise, <c>false</c>.</returns> public bool IsCosignerOfMultisigAccount(PublicAccount account) { return(MultisigAccounts.Contains(account)); }
/// <summary> /// Initializes a new instance of the <see cref="Account" /> class. /// </summary> /// <param name="keyPair">The address.</param> /// <param name="networkType">The key pair.</param> public Account(KeyPair keyPair, NetworkType networkType) { KeyPair = keyPair; PublicAccount = new PublicAccount(PublicKey, networkType); }
/// <summary> /// Initializes a new instance of the <see cref="Account" /> class. /// </summary> /// <param name="address">The address.</param> /// <param name="keyPair">The key pair.</param> public Account(Address address, KeyPair keyPair) { Address = address; KeyPair = keyPair; PublicAccount = new PublicAccount(keyPair.PublicKeyString, address.NetworkType); }