예제 #1
0
        public void GetMyBalance()
        {
            var account = new Account
            {
                AccountId            = "asldfjlsakdjflkdsajfl",
                HomeDomain           = "AccountHomeDomain",
                InflationDestination = "InflationDestination",
                Balances             = new List <Balance>
                {
                    new Balance
                    {
                        AssetCode    = "B1",
                        AssetIssuer  = "B1Issuer",
                        AssetType    = "B1Type",
                        BalanceValue = "1",
                        Limit        = "100"
                    },
                    new Balance
                    {
                        AssetCode    = "B2",
                        AssetIssuer  = "B2Issuer",
                        AssetType    = "B2Type",
                        BalanceValue = "5",
                        Limit        = "500"
                    }
                },
                Data = new Dictionary <string, string>
                {
                    { "key1", "value1" },
                    { "key2", "value2" },
                    { "key3", "value3" },
                    { "key4", "value4" }
                }
            };

            AccountReceived?.Invoke(this, new AccountEventArgs(account));
        }
예제 #2
0
 void IXSpi.ProcessQryAccount(AccountField account, bool last)
 {
     AccountReceived?.Invoke(this, account, last);
 }