<?php

declare(strict_types=1);

namespace ImovelZapAi\Publishing\Domain\Feeds\VrSync;

/**
 * Feed XML no padrão VRSync (Grupo OLX / VivaReal / ZAP).
 *
 * Montado por {@see \ImovelZapAi\Publishing\Application\Services\FeedGenerator}
 * com listings via {@see \ImovelZapAi\Publishing\Application\Mappers\VrSyncListingMapper}.
 */
final readonly class ListingDataFeed
{
    public const FORMAT = 'VRSync';

    public const VERSION = '1.0';

    public const NAMESPACE = 'http://www.vivareal.com/schemas/1.0/VRSync';

    public const SCHEMA_LOCATION = 'http://www.vivareal.com/schemas/1.0/VRSync http://xml.vivareal.com/vrsync.xsd';

    /**
     * @param  list<ListingDataFeedListing>  $listings
     */
    public function __construct(
        public ListingDataFeedHeader $header,
        public array $listings,
    ) {}
}
