Neighbourhood.omg.lol/Models/StatusOrPic.cs

11 lines
345 B
C#

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