示例#1
0
        public Com.Daml.Ledger.Api.V1.GetTransactionTreesResponse ToProto()
        {
            var response = new Com.Daml.Ledger.Api.V1.GetTransactionTreesResponse();

            response.Transactions.AddRange(from t in Transactions select t.ToProto());
            return(response);
        }
        private void ConvertThroughProto(GetTransactionTreesResponse source)
        {
            Com.Daml.Ledger.Api.V1.GetTransactionTreesResponse protoValue = source.ToProto();
            GetTransactionTreesResponse target = GetTransactionTreesResponse.FromProto(protoValue);

            Assert.True(source == target);
        }
示例#3
0
 public static GetTransactionTreesResponse FromProto(Com.Daml.Ledger.Api.V1.GetTransactionTreesResponse response) => new GetTransactionTreesResponse(from t in response.Transactions select TransactionTree.FromProto(t));