Exemplo n.º 1
0
        // Get RealTime Balance
        private async void Get_Balance_Click(object sender, EventArgs e)
        {
            WAction show  = new WAction();
            decimal value = await show.ShowAsset();

            this.label2.Text = Convert.ToString(value);
        }
Exemplo n.º 2
0
        public override async void ViewDidLoad()
        {
            base.ViewDidLoad();
            // Perform any additional setup after loading the view, typically from a nib.
            Forms.Init();
            decimal value = 0m;

            value = await WAction.ShowAsset();

            balancelabel.Text = Convert.ToString(value);
        }
Exemplo n.º 3
0
        public async Task <string> showcoin([FromBody] Showamount showdata)
        {
            decimal coinamount    = 0m;
            WAction walletservice = new WAction();

            coinamount = await walletservice.ShowAsset(showdata.my_publickey);

            Showresult amountresult = new Showresult();

            amountresult.coin_amount = Convert.ToString(coinamount);
            string amountjson = JsonSerializer.Serialize(amountresult);

            return(amountjson);
        }