This is a wrapper for the immo.vlan.be API for ASP.NET Core. There is a nice documentation guide wich you can find on the ImmoVlan website. Read this before using this wrapper.
Have you spotted a bug or want to add a missing feature? All pull requests are welcome! Please provide a description of the bug or feature you have fixed/added. Make sure to target the latest development branch.
The easiest way to install is through the NuGet package.
PM> Install-Package ImmoVlanAPI
The library has currently some limitations, I've created around 50% of all options. Following options have been added and are fully supported:
- Classification
- Location
- Description
- Financial Details
- General Information (Optional)
- Outdoor Description (Optional)
- Indoor Description (Optional)
- Certificates (Optional)
- Attachments (Optional)
The documentation will be written soon.
ImmoVlanClient client = new ImmoVlanClient("[email protected]", "[email protected]", 1, "XXXX");
Property property = new Property("123", "123", CommercialStatus.ONLINE,
new Classification(TransactionType.SALE, PropertyType.BusinessSurface),
new Location(new Address("9250")),
new Description("Desc dutch", "Desc french"),
new FinancialDetails(500)
);
var publishResult = await client.PublishProperty(property).Result;
This only contains the most basic options, there are a lot more, the documentation will get updated soon.
Property prop = new Property("123", "123", CommercialStatus.ONLINE,
new Classification(TransactionType.SALE, PropertyType.BusinessSurface, true),
new Location(new Address("9250", "Neerstraat", "50")),
new Description("Desc dutch", "Desc french", "Damn this is more"),
new FinancialDetails(500) {
AgencyFee = 50,
Curreny = Curreny.CHF
}) {
GeneralInformation = new GeneralInformation() {
ContactEmail = "[email protected]"
},
OutdoorDescription = new OutdoorDescription() {
HasBalcony = true
},
IndoorDescription = new IndoorDescription() {
IsFurnished = true,
Rooms = new Room[] {
new Room(RoomType.Attic, 1, 50),
new Room(RoomType.Bathroom, 1, 50),
}
},
Certificates = new Certificates() {
Epc = new EPC() {
Reference = "JHSGHJKSQDH"
},
ElectricalInstallationCertificate = Certificate.Yes,
ElectricalInstallationValidityDate = DateTime.Now
},
Attachments = new Attachments() {
Pictures = new Picture[] { new Picture(1, "content") },
Videos = new Video[] { new Video(1, "link") },
Documents = new Document[] { new Document("name", 1, "content") }
}
};