コード例 #1
0
        async Task Invite(ButtonRow arg)
        {
            if (await ConfirmAsync("InvitationConfirm"))
            {
                IsBusy = true;
                var result = (await _node.SendFriendInvitation(_friendAccountId)).Result;
                IsBusy = false;

                if (result.TransactionResult == TransactionResultTypes.Ok)
                {
                    RemoveHeaderSection("Invitation");
                    await MessageAsync("InvitationSuccess");
                }
                else
                {
                    await ErrorTextAsync(result.GetErrorMessage());
                }
            }
        }