/// <summary>
 /// Creates a new <see cref="RealEstateItem"/> instance
 /// </summary>
 /// <param name="realEstate"><see cref="RealEstate"/> data item</param>
 /// <param name="connection">The <see cref="IIS24Connection"/> used for querying the API</param>
 public RealEstateItem(RealEstate realEstate, IIS24Connection connection)
 {
     RealEstate         = realEstate;
     Attachments        = new AttachmentResource(realEstate, connection);
     Publish            = new PublishResource(connection);
     PremiumPlacements  = new PremiumPlacementResource(connection, realEstate);
     TopPlacements      = new TopPlacementResource(connection, realEstate);
     ShowcasePlacements = new ShowcasePlacementResource(connection, realEstate);
 }
Exemple #2
0
 /// <summary>
 /// Creates a new <see cref="ImportExportClient"/> instance
 /// </summary>
 /// <param name="connection"></param>
 public ImportExportClient(IIS24Connection connection)
 {
     Connection         = connection ?? throw new ArgumentNullException("connection");
     RealEstates        = new RealEstateResource(Connection);
     RealEstateCounts   = new RealEstateCountsResource(Connection);
     Contacts           = new ContactResource(Connection);
     Publish            = new PublishResource(Connection);
     PublishChannels    = new PublishChannelResource(Connection);
     RealEstateProjects = new RealEstateProjectResource(Connection);
     ShowcasePlacements = new ShowcasePlacementResource(Connection);
     PremiumPlacements  = new PremiumPlacementResource(Connection);
     TopPlacements      = new TopPlacementResource(Connection);
 }