예제 #1
0
        private async Task ContactSearchButtonTask(FriendViewCellModel fvcm)
        {
            var frc = new FriendRequestContract()
            {
                InitiatorId = _userSelf.Id,
                TargetId    = fvcm.UserId,
                TimeStamp   = DateTime.Now,
                Type        = FriendRequestType.Normal
            };
            await _friendRequestService.PostFriendRequestAsync(frc);

            ContactSearchRequestFriends.Remove(fvcm);
            fvcm.Status = FriendStatus.PendingRequest;
            PendingFriends.Add(fvcm);
            FilterGroupsBySearch();
        }