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); }
public static GetTransactionTreesResponse FromProto(Com.Daml.Ledger.Api.V1.GetTransactionTreesResponse response) => new GetTransactionTreesResponse(from t in response.Transactions select TransactionTree.FromProto(t));