using System; using Comal.Classes; namespace comal.timesheets { public class NotificationShell : Shell { static NotificationShell() { Columns .Map(nameof(ID), x => x.ID) .Map(nameof(Created), x => x.Created) .Map(nameof(Sender), x => x.Sender.Name) .Map(nameof(Title), x => x.Title) .Map(nameof(Description), x => x.Description) .Map(nameof(EntityType), x => x.EntityType) .Map(nameof(EntityID), x => x.EntityID) .Map(nameof(Attachments), x=>x.DocumentCount); } public Guid ID => Get(); public DateTime Created => Get(); public string Sender => Get(); public string Title => Get(); public string Description => Get(); public string EntityType => Get(); public Guid EntityID => Get(); public int Attachments => Get(); public bool ImageVisible => Attachments > 0; } }