using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Neighbourhood.omg.lol.Models { public class StatusOrPic { public Status? Status { get; set; } public Pic? Pic { get; set; } public bool IsStatus { get => Status != null; } public bool IsPic { get => Pic != null; } public DateTimeOffset? CreatedTime { get => Status?.CreatedTime ?? Pic?.CreatedTime; } } }