UNPKG

@mcma/core

Version:

Node module with type definitions and helper utils for the EBU MCMA framework

27 lines (26 loc) 1.12 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.JobAssignment = void 0; const job_base_1 = require("./job-base"); const mcma_tracker_1 = require("./mcma-tracker"); const notification_endpoint_1 = require("./notification-endpoint"); const utils_1 = require("../utils"); class JobAssignment extends job_base_1.JobBase { jobId; tracker; notificationEndpoint; constructor(properties) { super("JobAssignment", properties); this.jobId = properties.jobId; if (typeof properties.tracker === "object") { this.tracker = new mcma_tracker_1.McmaTracker(properties.tracker); } if (typeof properties.notificationEndpoint === "object") { this.notificationEndpoint = new notification_endpoint_1.NotificationEndpoint(properties.notificationEndpoint); } utils_1.Utils.checkProperty(this, "jobId", "url"); utils_1.Utils.checkProperty(this, "tracker", "object", false); utils_1.Utils.checkProperty(this, "notificationEndpoint", "object", false); } } exports.JobAssignment = JobAssignment;