diff --git a/src/Inedo.UPack/Packaging/RepackageEntryList.cs b/src/Inedo.UPack/Packaging/RepackageEntryList.cs index 0a9add4..bd6039d 100644 --- a/src/Inedo.UPack/Packaging/RepackageEntryList.cs +++ b/src/Inedo.UPack/Packaging/RepackageEntryList.cs @@ -38,10 +38,10 @@ private protected override List GetList() new RepackageHistoryEntry { Id = getString("id"), - CreatedDate = getDate("date"), - CreatedReason = getString("reason"), - CreatedUsing = getString("using"), - CreatedBy = getString("by"), + Date = getDate("date"), + Reason = getString("reason"), + Using = getString("using"), + By = getString("by"), Url = getString("url") } ); @@ -84,14 +84,14 @@ object getItem(RepackageHistoryEntry entry) var dict = new Dictionary(); if (!string.IsNullOrEmpty(entry.Id)) dict["id"] = entry.Id; - if (entry.CreatedDate != null) - dict["date"] = entry.CreatedDate?.ToString("o"); - if (!string.IsNullOrEmpty(entry.CreatedReason)) - dict["reason"] = entry.CreatedReason; - if (!string.IsNullOrEmpty(entry.CreatedUsing)) - dict["using"] = entry.CreatedUsing; - if (!string.IsNullOrEmpty(entry.CreatedBy)) - dict["by"] = entry.CreatedBy; + if (entry.Date != null) + dict["date"] = entry.Date?.ToString("o"); + if (!string.IsNullOrEmpty(entry.Reason)) + dict["reason"] = entry.Reason; + if (!string.IsNullOrEmpty(entry.Using)) + dict["using"] = entry.Using; + if (!string.IsNullOrEmpty(entry.By)) + dict["by"] = entry.By; if (!string.IsNullOrEmpty(entry.Url)) dict["url"] = entry.Url; diff --git a/src/Inedo.UPack/Packaging/RepackageHistoryEntry.cs b/src/Inedo.UPack/Packaging/RepackageHistoryEntry.cs index f50c72b..f559050 100644 --- a/src/Inedo.UPack/Packaging/RepackageHistoryEntry.cs +++ b/src/Inedo.UPack/Packaging/RepackageHistoryEntry.cs @@ -22,19 +22,19 @@ public RepackageHistoryEntry() /// /// Gets or sets date when the package was first created. /// - public DateTimeOffset? CreatedDate { get; set; } + public DateTimeOffset? Date { get; set; } /// /// Gets or sets a string describing the reason or purpose of the creation. /// - public string CreatedReason { get; set; } + public string Reason { get; set; } /// /// Gets or sets a string describing the mechanism the package was created with. /// - public string CreatedUsing { get; set; } + public string Using { get; set; } /// /// Gets or sets a string describing the person or service that performed the installation. /// - public string CreatedBy { get; set; } + public string By { get; set; } /// /// Gets or sets a URL describing where more information about the repackaging can be found. ///