Ejemplo n.º 1
0
        public override async Task <GetPeopleInfoResponse> GetPeoplesInfo(GetPeopleInfoRequest request, ServerCallContext context)
        {
            await VertifyTokenAsync(context);

            var info = await _server.GetPeopleInfoAsync(request.SenderId, request.TargetId);

            return(new GetPeopleInfoResponse {
                PeopleInfo = info
            });
        }
Ejemplo n.º 2
0
        public async Task <GetPeopleInfoResponse> GetPeopleInfo(GetPeopleInfoRequest request)
        {
            await VertifyTokenAsync();

            var info = await _server.GetPeopleInfoAsync(request.SenderId, request.TargetId);

            return(new GetPeopleInfoResponse {
                PeopleInfo = info
            });
        }
Ejemplo n.º 3
0
        public async Task <PeopleInfo> GetPeopleInfo(long peopleId)
        {
            var request = new GetPeopleInfoRequest
            {
                SenderId = UserId,
                TargetId = peopleId
            };
            var response = await _serverService.GetPeopleInfo(request);

            return(response.PeopleInfo);
        }
Ejemplo n.º 4
0
 public async Task <GetPeopleInfoResponse> GetPeopleInfo(GetPeopleInfoRequest request)
 {
     return(await base.GetPeoplesInfoAsync(request, _metadata));
 }