示例#1
0
        public async Task <RoomMemberPayload> RoomMemberRawPayload(string roomId, string contactId)
        {
            var payload = new RoomMemberPayload();

            var request = new RoomMemberPayloadRequest()
            {
                Id       = roomId,
                MemberId = contactId
            };
            var response = await grpcClient.RoomMemberPayloadAsync(request);

            if (response != null)
            {
                payload = new RoomMemberPayload()
                {
                    Avatar    = response.Avatar,
                    Id        = response.Id,
                    InviterId = response.InviterId,
                    Name      = response.Name,
                    RoomAlias = response.RoomAlias
                };
            }
            return(payload);
        }
示例#2
0
 public RoomMemberPayload RoomMemberRawPayloadParser(RoomMemberPayload payload)
 {
     return(payload);
 }
 protected override async Task <RoomMemberPayload> RoomMemberRawPayloadParser(RoomMemberPayload rawPayload)
 {
     return(_ = rawPayload);
 }
示例#4
0
 protected abstract Task <RoomMemberPayload> RoomMemberRawPayloadParser(RoomMemberPayload rawPayload);