Modified, Created

This commit is contained in:
Garry Newman 2016-10-17 14:02:04 +01:00
parent c5f22d6470
commit 2fc391b474

View File

@ -25,6 +25,8 @@ public class Item
public string Title { get; private set; }
public uint VotesDown { get; private set; }
public uint VotesUp { get; private set; }
public DateTime Modified { get; private set; }
public DateTime Created { get; private set; }
internal static Item From( SteamUGCDetails_t details, Workshop workshop )
{
@ -39,6 +41,8 @@ internal static Item From( SteamUGCDetails_t details, Workshop workshop )
item.Score = details.m_flScore;
item.VotesUp = details.m_unVotesUp;
item.VotesDown = details.m_unVotesDown;
item.Modified = new DateTime( details.m_rtimeUpdated );
item.Created = new DateTime( details.m_rtimeCreated );
item.UpdateState();
return item;