コード例 #1
0
        private Crypotcurrencies.WalletEntity GenerateWallet(Guid accountId, int idValue, string cryptoCode)
        {
            var wallet = new WalletEntity
            {
                AccountId     = accountId,
                CryptoId      = idValue,
                Balance       = 0M,
                FrozenBalance = 0M,
                Address       = null,
                CryptoCode    = cryptoCode
            };

            return(_walletFactory.Insert(wallet));
        }
コード例 #2
0
ファイル: WalletFactory.cs プロジェクト: BryceStory/BS.FPApp
        public override WalletEntity Insert(WalletEntity walletEntity)
        {
            var userWallet = new UserWallet
            {
                UserAccountId  = walletEntity.AccountId,
                CryptoId       = walletEntity.CryptoId,
                CryptoCode     = walletEntity.CryptoCode,
                Balance        = walletEntity.Balance,
                FrozenBalance  = walletEntity.FrozenBalance,
                Address        = walletEntity.Address,
                HomePageRank   = 0,
                PayRank        = 0,
                ShowInHomePage = true
            };

            walletEntity.Id = new UserWalletDAC().Insert(userWallet);
            return(walletEntity);
        }
コード例 #3
0
ファイル: WalletFactory.cs プロジェクト: BryceStory/BS.FPApp
        public override WalletEntity Insert(WalletEntity walletEntity)
        {
            var merchantWallet = new MerchantWallet
            {
                MerchantAccountId = walletEntity.AccountId,
                CryptoId          = walletEntity.CryptoId,
                Status            = MerchantWalletStatus.Displayed,
                Balance           = walletEntity.Balance,
                FrozenBalance     = walletEntity.FrozenBalance,
                Address           = walletEntity.Address,
                SupportReceipt    = false,
                CryptoCode        = walletEntity.CryptoCode
            };

            merchantWallet  = new MerchantWalletDAC().Insert(merchantWallet);
            walletEntity.Id = merchantWallet.Id;
            return(walletEntity);
        }
コード例 #4
0
ファイル: WalletFactory.cs プロジェクト: BryceStory/BS.FPApp
 public abstract WalletEntity Insert(WalletEntity model);