Neighbourhood.omg.lol/Models/StatusOrPic.cs

18 lines
462 B
C#
Raw Permalink Normal View History

2024-06-28 07:08:12 +00:00
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; }
}
}