13 lines
453 B
C#
13 lines
453 B
C#
namespace Neighbourhood.omg.lol.Models {
|
|
public class FeedItem {
|
|
public Status? Status { get; set; }
|
|
public Pic? Pic { get; set; }
|
|
public Paste? Paste { get; set; }
|
|
|
|
public bool IsStatus { get => Status != null; }
|
|
public bool IsPic { get => Pic != null; }
|
|
public bool IsPaste { get => Paste != null; }
|
|
|
|
public DateTimeOffset? CreatedTime { get => Status?.CreatedTime ?? Pic?.CreatedTime ?? Paste?.ModifiedTime; }
|
|
}
|
|
}
|