"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.BlockStopsRedisRepository = void 0;
const TripStopsCacheDtoSchema_1 = require("../../../../schema-definitions/vehicle-positions/redis/schemas/TripStopsCacheDtoSchema");
const RedisModel_1 = require("@golemio/core/dist/integration-engine/models/RedisModel");
const golemio_validator_1 = require("@golemio/core/dist/shared/golemio-validator");
class BlockStopsRedisRepository extends RedisModel_1.RedisModel {
    constructor() {
        super("GTFSBlockStopsRedisRepository", {
            decodeDataAfterGet: JSON.parse,
            encodeDataBeforeSave: JSON.stringify,
            isKeyConstructedFromData: false,
            prefix: BlockStopsRedisRepository.NAMESPACE_PREFIX,
        }, new golemio_validator_1.JSONSchemaValidator("GTFSBlockStopsRedisRepositoryValidator", TripStopsCacheDtoSchema_1.TripStopsCacheDtoSchema));
    }
}
exports.BlockStopsRedisRepository = BlockStopsRedisRepository;
BlockStopsRedisRepository.NAMESPACE_PREFIX = "gtfsBlockSchedule";
//# sourceMappingURL=BlockStopsRedisRepository.js.map