public async Task <FileBox> MessageFile(string id) { var request = new MessageFileRequest(); request.Id = id; var response = await grpcClient.MessageFileAsync(request); return(JsonConvert.DeserializeObject <FileBox>(response?.Filebox)); }
public override async Task <FileBox> MessageFile(string messageId) { var request = new MessageFileRequest { Id = messageId }; var response = await grpcClient.MessageFileAsync(request); return(JsonConvert.DeserializeObject <FileBox>(response.Filebox)); }
public override async Task <FileBox> MessageFile(string messageId) { var request = new MessageFileRequest { Id = messageId }; var response = await grpcClient.MessageFileAsync(request); var filebox = response.Filebox; return(FileBox.FromJson(filebox)); }