Example #1
0
        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;
        }
Example #2
0
        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);
        }