@omnia/fx-models
Version:
Provide Omnia Fx Models Stuffs.
29 lines (28 loc) • 1.23 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.MediaPropertyDefinition = exports.MediaPropertyDefinitionId = exports.MediaDisplaySettings = void 0;
const models_1 = require("@omnia/fx-models/internal-do-not-import-from-here/shared/models");
const PropertyDefinition_1 = require("../PropertyDefinition");
class MediaDisplaySettings extends PropertyDefinition_1.PropertyDisplaySettingsBase {
constructor(videoSettings, imageSettings) {
super();
if (videoSettings) {
this.label = videoSettings.label;
this.video = videoSettings;
}
else if (imageSettings) {
this.label = imageSettings.label;
this.image = imageSettings;
}
}
}
exports.MediaDisplaySettings = MediaDisplaySettings;
exports.MediaPropertyDefinitionId = new models_1.Guid("3272c123-f999-4e02-9f81-dfc4b171ba04");
class MediaPropertyDefinition extends PropertyDefinition_1.PropertyDefinition {
constructor() {
super(...arguments);
this.id = exports.MediaPropertyDefinitionId;
this.typeName = "$Localize:Omnia.Ux.Properties.Definitions.Media;";
}
}
exports.MediaPropertyDefinition = MediaPropertyDefinition;