/// <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); }
/// <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); }