protected void ToString(List <string> toStringOutput) { toStringOutput.Add($"Id = {(Id == null ? "null" : Id == string.Empty ? "" : Id)}"); toStringOutput.Add($"ReferenceId = {(ReferenceId == null ? "null" : ReferenceId == string.Empty ? "" : ReferenceId)}"); toStringOutput.Add($"FromState = {(FromState == null ? "null" : FromState.ToString())}"); toStringOutput.Add($"ToState = {(ToState == null ? "null" : ToState.ToString())}"); toStringOutput.Add($"LocationId = {(LocationId == null ? "null" : LocationId == string.Empty ? "" : LocationId)}"); toStringOutput.Add($"CatalogObjectId = {(CatalogObjectId == null ? "null" : CatalogObjectId == string.Empty ? "" : CatalogObjectId)}"); toStringOutput.Add($"CatalogObjectType = {(CatalogObjectType == null ? "null" : CatalogObjectType == string.Empty ? "" : CatalogObjectType)}"); toStringOutput.Add($"Quantity = {(Quantity == null ? "null" : Quantity == string.Empty ? "" : Quantity)}"); toStringOutput.Add($"TotalPriceMoney = {(TotalPriceMoney == null ? "null" : TotalPriceMoney.ToString())}"); toStringOutput.Add($"OccurredAt = {(OccurredAt == null ? "null" : OccurredAt == string.Empty ? "" : OccurredAt)}"); toStringOutput.Add($"CreatedAt = {(CreatedAt == null ? "null" : CreatedAt == string.Empty ? "" : CreatedAt)}"); toStringOutput.Add($"Source = {(Source == null ? "null" : Source.ToString())}"); toStringOutput.Add($"EmployeeId = {(EmployeeId == null ? "null" : EmployeeId == string.Empty ? "" : EmployeeId)}"); toStringOutput.Add($"TransactionId = {(TransactionId == null ? "null" : TransactionId == string.Empty ? "" : TransactionId)}"); toStringOutput.Add($"RefundId = {(RefundId == null ? "null" : RefundId == string.Empty ? "" : RefundId)}"); toStringOutput.Add($"PurchaseOrderId = {(PurchaseOrderId == null ? "null" : PurchaseOrderId == string.Empty ? "" : PurchaseOrderId)}"); toStringOutput.Add($"GoodsReceiptId = {(GoodsReceiptId == null ? "null" : GoodsReceiptId == string.Empty ? "" : GoodsReceiptId)}"); }
public override string ToString() { return($"[{FromState.ToString()}]-->[{NowState.ToString()}]"); }
public override string ToString() { StringBuilder __sb = new StringBuilder("TDDITransition("); bool __first = true; if (__isset.Id) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("Id: "); __sb.Append(Id); } if (Name != null && __isset.Name) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("Name: "); __sb.Append(Name); } if (Description != null && __isset.Description) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("Description: "); __sb.Append(Description); } if (__isset.IsCitation) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("IsCitation: "); __sb.Append(IsCitation); } if (__isset.IsAbstract) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("IsAbstract: "); __sb.Append(IsAbstract); } if (KeyValueMaps != null && __isset.KeyValueMaps) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("KeyValueMaps: "); __sb.Append(KeyValueMaps); } if (CitedElement != null && __isset.CitedElement) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("CitedElement: "); __sb.Append(CitedElement == null ? "<null>" : CitedElement.ToString()); } if (__isset.Probability) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("Probability: "); __sb.Append(Probability); } if (ProbabilityDistribution != null && __isset.ProbabilityDistribution) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("ProbabilityDistribution: "); __sb.Append(ProbabilityDistribution == null ? "<null>" : ProbabilityDistribution.ToString()); } if (FromFailState != null && __isset.FromFailState) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("FromFailState: "); __sb.Append(FromFailState == null ? "<null>" : FromFailState.ToString()); } if (ToFailState != null && __isset.ToFailState) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("ToFailState: "); __sb.Append(ToFailState == null ? "<null>" : ToFailState.ToString()); } if (FromState != null && __isset.FromState) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("FromState: "); __sb.Append(FromState == null ? "<null>" : FromState.ToString()); } if (ToState != null && __isset.ToState) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("ToState: "); __sb.Append(ToState == null ? "<null>" : ToState.ToString()); } __sb.Append(")"); return(__sb.ToString()); }