| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- namespace cwebplusApp.Shared.Models {
- public class FoundReport : Report {
- public bool AbholadresseIstKontakt { get; set; } // required
- public string NeueMarke { get; set; }
- public GeographicInfo GeographicInfo { get; set; } // required
-
- public string AbholAnrede { get; set; } // required when AbholadresseIstKontakt = false
- public string AbholVorname { get; set; } // required when AbholadresseIstKontakt = false
- public string AbholNachname { get; set; } // required when AbholadresseIstKontakt = false
- public string AbholStrasse { get; set; } // required when AbholadresseIstKontakt = false
- public string AbholPLZ { get; set; } // required when AbholadresseIstKontakt = false
- public string AbholOrt { get; set; } // required when AbholadresseIstKontakt = false
- public string AbholMail { get; set; }
- public string AbholMobil { get; set; }
- public string AbholTelefon { get; set; }
-
-
- public FoundReport() : this("", "", "", true, -1, -1, -1, new GeographicInfo()) {
- }
-
- public FoundReport(string anrede, string vorname, string nachname, bool abholadresseIstKontakt, int typId, int markeId, int farbeId, GeographicInfo geographicInfo) {
- this.Anrede = anrede;
- this.Vorname = vorname;
- this.Nachname = nachname;
- this.AbholadresseIstKontakt = abholadresseIstKontakt;
- this.TypId = typId;
- this.MarkeId = markeId;
- this.FarbeId = farbeId;
- this.GeographicInfo = geographicInfo;
- }
- }
-
-
- public class GeographicInfo {
- public string Postcode { get; set; } // required
- public string Town { get; set; } // required
- public string Address { get; set; } // required
- public double Latitude { get; set; }
- public double Longitude { get; set; }
-
- public GeographicInfo() : this("", "", "", 0.0, 0.0) {
- }
-
- public GeographicInfo(string town, string postcode, string address, double latitude, double longitude) {
- this.Town = town;
- this.Postcode = postcode;
- this.Address = address;
- this.Latitude = latitude;
- this.Longitude = longitude;
- }
- }
-
- }
|