示例#1
0
        async Task Approve(ButtonRow arg)
        {
            var invitation = arg.Tag as FriendInvitation;

            if (await ConfirmAsync("ApprovalConfirm"))
            {
                IsBusy = true;
                var result = (await _node.AcceptFriendInvitation(invitation.FriendAccountId)).Result;
                IsBusy = false;

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