Neighbourhood.omg.lol/Models/FeedItem.cs

14 lines
453 B
C#
Raw Permalink Normal View History

2024-07-11 05:57:53 +00:00
namespace Neighbourhood.omg.lol.Models {
2024-07-25 03:39:36 +00:00
public class FeedItem {
2024-06-28 07:08:12 +00:00
public Status? Status { get; set; }
public Pic? Pic { get; set; }
2024-07-25 03:39:36 +00:00
public Paste? Paste { get; set; }
2024-06-28 07:08:12 +00:00
public bool IsStatus { get => Status != null; }
public bool IsPic { get => Pic != null; }
2024-07-25 03:39:36 +00:00
public bool IsPaste { get => Paste != null; }
2024-06-28 07:08:12 +00:00
2024-07-25 03:39:36 +00:00
public DateTimeOffset? CreatedTime { get => Status?.CreatedTime ?? Pic?.CreatedTime ?? Paste?.ModifiedTime; }
2024-06-28 07:08:12 +00:00
}
}