MeetingShell.cs 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. using System;
  2. using System.Collections.ObjectModel;
  3. using Comal.Classes;
  4. using InABox.Core;
  5. using InABox.Mobile;
  6. namespace PRS.Mobile
  7. {
  8. public class MeetingShell : Shell<MeetingModel, Assignment>
  9. {
  10. protected override void ConfigureColumns(ShellColumns<MeetingModel, Assignment> columns)
  11. {
  12. columns
  13. .Map(nameof(MeetingID), x => x.Meeting.Link.ID)
  14. .Map(nameof(Number), x => x.Meeting.Link.Number)
  15. .Map(nameof(Title), x => x.Meeting.Link.Title)
  16. .Map(nameof(Description), x => x.Meeting.Link.Description)
  17. .Map(nameof(Date), x => x.Meeting.Link.Date)
  18. .Map(nameof(Start), x => x.Meeting.Link.Time.Start)
  19. .Map(nameof(Finish), x => x.Meeting.Link.Time.Finish)
  20. .Map(nameof(RSVP), x => x.Meeting.RSVP)
  21. ;
  22. }
  23. public Guid MeetingID => Get<Guid>();
  24. public int Number => Get<int>();
  25. public String Title => Get<String>();
  26. public String Description => Get<String>();
  27. public DateTime Date => Get<DateTime>();
  28. public TimeSpan Start => Get<TimeSpan>();
  29. public TimeSpan Finish => Get<TimeSpan>();
  30. public DateTime RSVP
  31. {
  32. get => Get<DateTime>();
  33. set => Set(value);
  34. }
  35. }
  36. }