@omnia/fx-models
Version:
Provide Omnia Fx Models Stuffs.
16 lines (15 loc) • 515 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.BirthdayPropertyValue = void 0;
const PropertyValue_1 = require("../PropertyValue");
class BirthdayPropertyValue extends PropertyValue_1.PropertyValue {
constructor(birthday, timeZoneId) {
super();
this.timeZoneId = timeZoneId;
this.birthday = birthday ? birthday.toJSON() : undefined;
}
isEmpty() {
return !this.birthday;
}
}
exports.BirthdayPropertyValue = BirthdayPropertyValue;