Skip to content

Commit

Permalink
renamed properties
Browse files Browse the repository at this point in the history
  • Loading branch information
gdivis committed May 25, 2018
1 parent 7a6d503 commit e4518e9
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
24 changes: 12 additions & 12 deletions src/Inedo.UPack/Packaging/RepackageEntryList.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ private protected override List<RepackageHistoryEntry> 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")
}
);
Expand Down Expand Up @@ -84,14 +84,14 @@ object getItem(RepackageHistoryEntry entry)
var dict = new Dictionary<string, object>();
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;

Expand Down
8 changes: 4 additions & 4 deletions src/Inedo.UPack/Packaging/RepackageHistoryEntry.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,19 @@ public RepackageHistoryEntry()
/// <summary>
/// Gets or sets date when the package was first created.
/// </summary>
public DateTimeOffset? CreatedDate { get; set; }
public DateTimeOffset? Date { get; set; }
/// <summary>
/// Gets or sets a string describing the reason or purpose of the creation.
/// </summary>
public string CreatedReason { get; set; }
public string Reason { get; set; }
/// <summary>
/// Gets or sets a string describing the mechanism the package was created with.
/// </summary>
public string CreatedUsing { get; set; }
public string Using { get; set; }
/// <summary>
/// Gets or sets a string describing the person or service that performed the installation.
/// </summary>
public string CreatedBy { get; set; }
public string By { get; set; }
/// <summary>
/// Gets or sets a URL describing where more information about the repackaging can be found.
/// </summary>
Expand Down

0 comments on commit e4518e9

Please sign in to comment.