示例#1
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);
 }
示例#2
0
        /// <summary>
        /// Creates a new <see cref="ImportExportClient"/> instance
        /// </summary>
        /// <param name="connection"></param>
        public ImportExportClient(IIS24Connection connection)
        {
            if (connection == null)
            {
                throw new ArgumentNullException("connection");
            }

            Connection = 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);
        }