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