ContactShell.cs 879 B

123456789101112131415161718192021222324252627
  1. using System;
  2. using Comal.Classes;
  3. namespace PRS.Mobile
  4. {
  5. public class ContactShell : Shell<ContactModel, Contact>
  6. {
  7. protected override void ConfigureColumns(ShellColumns<ContactModel, Contact> columns)
  8. {
  9. columns
  10. .Map(nameof(ID), x => x.ID)
  11. .Map(nameof(Name), x => x.Name)
  12. .Map(nameof(Street), x => x.Address.Street)
  13. .Map(nameof(City), x => x.Address.City)
  14. .Map(nameof(State), x => x.Address.State)
  15. .Map(nameof(PostCode), x => x.Address.PostCode);
  16. }
  17. public Guid ID => Get<Guid>();
  18. public String Name => Get<String>();
  19. public String Street => Get<String>();
  20. public String City => Get<String>();
  21. public String State => Get<String>();
  22. public String PostCode => Get<String>();
  23. }
  24. }