コード例 #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
            });
        }
コード例 #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
            });
        }
コード例 #3
0
ファイル: Client.cs プロジェクト: wangrunji0408/Chat
        public async Task <PeopleInfo> GetPeopleInfo(long peopleId)
        {
            var request = new GetPeopleInfoRequest
            {
                SenderId = UserId,
                TargetId = peopleId
            };
            var response = await _serverService.GetPeopleInfo(request);

            return(response.PeopleInfo);
        }
コード例 #4
0
 public async Task <GetPeopleInfoResponse> GetPeopleInfo(GetPeopleInfoRequest request)
 {
     return(await base.GetPeoplesInfoAsync(request, _metadata));
 }