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; } } }