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