public Property(string propertyProId, string propertySoftwareId, CommercialStatus status, Classification classification, Location location, Description description, FinancialDetails financial) { PropertyProId = propertyProId; PropertySoftwareId = propertySoftwareId; CommercialStatus = status; Classification = classification; Location = location; Description = description; FinancialDetails = financial; }
public override XElement ToXElement() { XElement el = new XElement("property", new XAttribute("propertyProId", PropertyProId), new XAttribute("propertySoftwareId", PropertySoftwareId), new XAttribute("commercialStatus", CommercialStatus.ToString()), Classification.ToXElement(), Location.ToXElement(), GeneralInformation != null ? GeneralInformation.ToXElement() : null, Description.ToXElement(), FinancialDetails.ToXElement(), OutdoorDescription != null ? OutdoorDescription.ToXElement() : null, IndoorDescription != null ? IndoorDescription.ToXElement() : null, Certificates != null ? Certificates.ToXElement() : null, Attachments != null ? Attachments.ToXElement() : null ); return(el); }