using System; using Comal.Classes; using InABox.Core; using InABox.Mobile; namespace PRS.Mobile { public class NotificationShell : Shell { protected override void ConfigureColumns(ShellColumns columns) { columns .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) .Map(nameof(Closed), x =>x.Closed); } public DateTime Created => Get(); public string Sender => Get(); public string Title => Get(); private String _description => Get(); public string Description => _description.StripHTML(); public string EntityType => Get(); public Guid EntityID => Get(); public int Attachments => Get(); public DateTime Closed { get => Get(); set => Set(value); } } }