public UploadParameterBuilder(IUploadParameterData data, string signerPrivateKey)
        {
            CheckParameter(data != null, "data is required");
            CheckParameter(signerPrivateKey != null, "signerPrivateKey is required");
            CheckParameter(() => KeyPair.CreateFromPrivateKey(signerPrivateKey) != null,
                           "signerPrivateKey should be a valid private key");

            Data             = data;
            SignerPrivateKey = signerPrivateKey;
        }
Esempio n. 2
0
 public UploadParameter(IUploadParameterData data, string signerPrivateKey, string recipientPublicKey,
                        string recipientAddress, bool computeDigest, bool detectContentType, int transactionDeadline,
                        List <Mosaic> transactionMosaics, bool useBlockchainSecureMessage, IPrivacyStrategy privacyStrategy)
 {
     Data                       = data;
     SignerPrivateKey           = signerPrivateKey;
     RecipientPublicKey         = recipientPublicKey;
     RecipientAddress           = recipientAddress;
     ComputeDigest              = computeDigest;
     DetectContentType          = detectContentType;
     TransactionDeadline        = transactionDeadline;
     TransactionMosaics         = transactionMosaics;
     UseBlockchainSecureMessage = useBlockchainSecureMessage;
     PrivacyStrategy            = privacyStrategy;
     Version                    = SchemaVersion;
 }