Neighbourhood.omg.lol/Models/StatusOrPic.cs

12 lines
345 B
C#
Raw Permalink Normal View History

2024-07-11 05:57:53 +00:00
namespace Neighbourhood.omg.lol.Models {
2024-06-28 07:08:12 +00:00
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; }
}
}