PWA Fundvelo der Caritas.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

FoundReport.cs 2.4KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. namespace cwebplusApp.Shared.Models {
  2. public class FoundReport : Report {
  3. public bool AbholadresseIstKontakt { get; set; } // required
  4. public string NeueMarke { get; set; }
  5. public GeographicInfo GeographicInfo { get; set; } // required
  6. public string AbholAnrede { get; set; } // required when AbholadresseIstKontakt = false
  7. public string AbholVorname { get; set; } // required when AbholadresseIstKontakt = false
  8. public string AbholNachname { get; set; } // required when AbholadresseIstKontakt = false
  9. public string AbholStrasse { get; set; } // required when AbholadresseIstKontakt = false
  10. public string AbholPLZ { get; set; } // required when AbholadresseIstKontakt = false
  11. public string AbholOrt { get; set; } // required when AbholadresseIstKontakt = false
  12. public string AbholMail { get; set; }
  13. public string AbholMobil { get; set; }
  14. public string AbholTelefon { get; set; }
  15. public FoundReport() : this("", "", "", true, -1, -1, -1, new GeographicInfo()) {
  16. }
  17. public FoundReport(string anrede, string vorname, string nachname, bool abholadresseIstKontakt, int typId, int markeId, int farbeId, GeographicInfo geographicInfo) {
  18. this.Anrede = anrede;
  19. this.Vorname = vorname;
  20. this.Nachname = nachname;
  21. this.AbholadresseIstKontakt = abholadresseIstKontakt;
  22. this.TypId = typId;
  23. this.MarkeId = markeId;
  24. this.FarbeId = farbeId;
  25. this.GeographicInfo = geographicInfo;
  26. }
  27. }
  28. public class GeographicInfo {
  29. public string Postcode { get; set; } // required
  30. public string Town { get; set; } // required
  31. public string Address { get; set; } // required
  32. public double Latitude { get; set; }
  33. public double Longitude { get; set; }
  34. public GeographicInfo() : this("", "", "", 0.0, 0.0) {
  35. }
  36. public GeographicInfo(string town, string postcode, string address, double latitude, double longitude) {
  37. this.Town = town;
  38. this.Postcode = postcode;
  39. this.Address = address;
  40. this.Latitude = latitude;
  41. this.Longitude = longitude;
  42. }
  43. }
  44. }