Du kan inte välja fler än 25 ämnen
Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
|
- import {Photo} from "./photo.js";
-
- export class Instance {
- /**
- * @param {Instance} instance
- */
- constructor(instance) {
- this._id = instance?._id;
- this.instanceId = instance?.instanceId;
- this.title = instance?.title;
- this.subtitle = instance?.subtitle;
- this.coverPhoto = instance?.coverPhoto ? new Photo(instance?.coverPhoto) : null;
- this.homeLayout = instance?.homeLayout;
- this.urls = instance?.urls || [];
- }
-
- /** @type {string} **/
- _id;
- /** @type {string} **/
- instanceId;
- /** @type {string} **/
- title;
- /** @type {string} **/
- subtitle;
- /** @type {Photo} **/
- coverPhoto;
- /** @type {Number} **/
- homeLayout;
- /** @type {string[]} **/
- urls;
- }
|