Skip to content

Commit

Permalink
Update HNAlgoliaModel.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
aminsys authored May 24, 2024
1 parent 9ecc712 commit 83988e8
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions HackerNewsApp2/Model/HNAlgoliaModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,23 +20,14 @@ public class HNAlgoliaModel
public bool Deleted { get; set; }
public bool Dead { get; set; }
public DateTime Created_At { get; set; }
public string ItemAge
{
get
{
return Util.Util.GetTimeAgo(Created_At);
}
}
public string ItemAge => Util.Util.GetTimeAgo(Created_At);
public int Parent { get; set; }
public int Poll { get; set; }
public int Parts { get; set; }
public string Url { get; set; }
public HNAlgoliaModel[] Children { get; set; }
public int Descendants {
get
{
return Children.Length;
}
get => Children.Length;
set => Descendants = value;
}

Expand Down

0 comments on commit 83988e8

Please sign in to comment.