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 }); }
public async Task <GetPeopleInfoResponse> GetPeopleInfo(GetPeopleInfoRequest request) { await VertifyTokenAsync(); var info = await _server.GetPeopleInfoAsync(request.SenderId, request.TargetId); return(new GetPeopleInfoResponse { PeopleInfo = info }); }
public async Task <PeopleInfo> GetPeopleInfo(long peopleId) { var request = new GetPeopleInfoRequest { SenderId = UserId, TargetId = peopleId }; var response = await _serverService.GetPeopleInfo(request); return(response.PeopleInfo); }
public async Task <GetPeopleInfoResponse> GetPeopleInfo(GetPeopleInfoRequest request) { return(await base.GetPeoplesInfoAsync(request, _metadata)); }